fix: allow mp3 fallback result
parent
d7b267843e
commit
6306786645
|
|
@ -539,7 +539,7 @@ actor TalkModeRuntime {
|
||||||
self.phase = .speaking
|
self.phase = .speaking
|
||||||
|
|
||||||
let sampleRate = TalkTTSValidation.pcmSampleRate(from: outputFormat)
|
let sampleRate = TalkTTSValidation.pcmSampleRate(from: outputFormat)
|
||||||
let result: StreamingPlaybackResult
|
var result: StreamingPlaybackResult
|
||||||
if let sampleRate {
|
if let sampleRate {
|
||||||
self.lastPlaybackWasPCM = true
|
self.lastPlaybackWasPCM = true
|
||||||
result = await self.playPCM(stream: stream, sampleRate: sampleRate)
|
result = await self.playPCM(stream: stream, sampleRate: sampleRate)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue