fix: allow mp3 fallback result

This commit is contained in:
Peter Steinberger
2025-12-30 14:35:53 +01:00
parent d7b267843e
commit 6306786645

View File

@@ -539,7 +539,7 @@ actor TalkModeRuntime {
self.phase = .speaking
let sampleRate = TalkTTSValidation.pcmSampleRate(from: outputFormat)
let result: StreamingPlaybackResult
var result: StreamingPlaybackResult
if let sampleRate {
self.lastPlaybackWasPCM = true
result = await self.playPCM(stream: stream, sampleRate: sampleRate)