Repository navigation
Document ai.params barge interactions; condition multilingual hints on Deepgram - #990
Devon-White wants to merge 2 commits into
Conversation
…s on Deepgram - barge_match_string turns transparent_barge off and is OR'd with barge_min_words - barge_min_words defaults to 0 (off); values outside 1-99 are ignored - static_greeting_no_barge: DTMF and interrupt_on_noise still interrupt; without it, speech over the greeting bypasses barge filters - interrupt_on_noise ignores enable_barge and the word/match filters - add double_turn_model, which takes priority over utility_model for planning - tts_number_format accepts generic - attention_timeout below end_of_speech_timeout is raised to it plus 1000 ms - recognition hints are dropped only on Deepgram code-switching, not every multilingual engine
|
The #924 half checks out against the source code. The barge, greeting, Technical1. Multilingual mode drops hints no matter which engine settings you pick. In the referenced source code,
With that change, #925 can probably close here, leaving only the 2. 3. The rest of #924 matches the source code. That covers the Style
Other
|
- Multilingual mode always runs code-switching recognition, so hints are dropped there on every configuration. Revert the Deepgram-only wording on the Python set_multilingual page, both add_dynamic_hints Notes, and the multilingual comparison table. Scope only the `languages` `multi` case to Deepgram in ai.hints (MDX and main.tsp). - barge_min_words: allowed values are 0 (off) or 1-99; drop the duplicate default from the prose. - interrupt_on_noise: the example is sustained sound, not a cough. - transparent_barge links back to barge_match_string, which turns it off. - tts_number_format: rewrite the opening sentence. - Regenerate SWML schema and REST/Relay OpenAPI output.
|
Addressed at aeac44b.
|
Closes #924
Refs #925
What changed
#924:
ai.paramsbarge-in and related behaviorEdited in
ai_params/index.mdxandspecs/swml/calling/Methods/ai/ai_params.tsp. The regenerated SWML schema and the REST and Relay OpenAPI output are committed with them.barge_match_stringtransparent_bargeoff, even whentransparent_barge: trueis also set.transparent_bargenow links back to it.barge_min_words, either condition triggers barge (OR).barge_min_words0(off, the default) or 1-99. Any other value is ignored.minValueis now 0, so the documented default validates.static_greeting_no_bargetrue, the caller's speech is held and answered after the greeting. DTMF andinterrupt_on_noisestill cut the greeting.false, the greeting stops when the caller finishes speaking over it. That stop ignoresbarge_min_words,barge_match_stringandenable_barge.interrupt_on_noiseenable_barge,barge_min_wordsandbarge_match_string.static_greeting_no_barge.double_turn_modelutility_modelfor planning.double_turnsnow states the full precedence chain.tts_number_formatgeneric.e164stays.attention_timeoutend_of_speech_timeoutis raised toend_of_speech_timeout+ 1000 ms.#925: multilingual hints
ai.multilingualalways runs speech recognition in code-switching mode, so recognition hints are not used in that mode whatever the engine or provider settings. The existing wording on the multilingual and Server SDK pages already says this and is unchanged. Theai.hintsdescription (ai/index.mdxandmain.tsp) now scopes only thelanguagescase to Deepgram: alanguagesentry withcode: multidrops hints on Deepgram, and outside code-switching mode every engine receives hints.Notes for reviewers
openai_asr_enginedefault differs from code #925 stays open (Refs, not Closes): theopenai_asr_enginedefault is unconfirmed.ai_params/index.mdxstill saysdeepgram:nova-3. The platform default is set per deployment, and I couldn't confirm the production value. Someone with deployment access should confirm it before the default is changed.genericexample is not tested live. With text normalization on (the default), longer digit strings get a second formatting pass that may fall back to E.164, so the234 567 8901example may not match every call.barge_match_stringcase sensitivity is left undocumented. The match is a regular expression and case-sensitive by default. Whether inline case-insensitive flags work on the platform wasn't confirmed.attention_timeoutauto-correction also emits an error event. It is left out because I didn't confirm whether customers receive it.double_turn_promptis also accepted inparamsand is undocumented. It is out of scope here.