Since customVocabulary started applying in SMART mode (follow-up to this thread, resolved Oct 5), SMART transcription replaces a position phrase with the vocabulary entry at that position instead of transcribing the spoken words.
Setup (Live API, models/gemini-3.5-transcribe-live, Gemini Developer API):
{"setup": {
"model": "models/gemini-3.5-transcribe-live",
"generationConfig": {"responseModalities": ["TEXT"]},
"inputAudioTranscription": {
"mode": "SMART",
"languageCodes": ["en-US"],
"customVocabulary": ["Alpha Radio", "Bluewave FM", "Cedar Jazz", "Delta News 24", "Evergreen Classics", "Foxtrot Talk"]
}
}}
Audio: a short TTS clip of each phrase, 16 kHz mono PCM sent as realtimeInput.audio, then audioStreamEnd. The inputTranscription text, 3 runs each:
| Spoken | SMART + customVocabulary | VERBATIM + customVocabulary | SMART, no customVocabulary |
|---|---|---|---|
| “the first one” | Alpha Radio. | The first one. | The first one. |
| “the second one” | Bluewave FM | The second one. | The second one. |
| “number three” | 3. Cedar Jazz | Number three. | 3. |
| “the fourth one” | Delta News 24 | The fourth one. | The fourth one. |
| “the last one” | Foxtrot Talk | The last one. | The last one. |
15/15 runs: with SMART + customVocabulary, every position phrase came back as the entry at that position (1-based, “the last one” = the last entry). VERBATIM with the same vocabulary, and SMART without a vocabulary, transcribe the words.
With a longer vocabulary (~95 terms) “the last one” still returns the last entry every time; shorter positions are swapped less often with clean TTS audio but do happen with real speech.
Expected: the spoken words. customVocabulary is a recognition hint for proper nouns, not a list to resolve references against.
Impact: our users pick items from an on-screen list by saying “the second one”. The transcript comes back as one of the list’s names, so the app cannot tell what was said and acts on the wrong item. We rely on both SMART and customVocabulary , so dropping either is not a real workaround.
Is this intended? Can SMART stop resolving references into the vocabulary while still applying it as a spelling hint?