fix(voice-call): use ?? instead of || for TTS speed config default#39290
fix(voice-call): use ?? instead of || for TTS speed config default#39290subrih wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR makes a targeted, correct fix to
Confidence Score: 5/5
Last reviewed commit: e7192e4 |
|
Both CI failures are pre-existing and unrelated to this change:
Diff is a single line in |
e7192e4 to
23fa9c1
Compare
|
After rebasing onto upstream main, I can see this fix ( |
Fixes #39285
What
Replace
||with??(nullish coalescing) when setting the default TTS speed value inOpenAITTSProvider.Why
||treats any falsy value as "not set", so a speed of0would incorrectly fall back to1.0. Using??ensures onlynullorundefinedtrigger the default — consistent with how numeric config values should be handled.Change
extensions/voice-call/src/providers/tts-openai.ts:85