Skip to content

speech: is_final not returning true for stream in German, French, Spanish, but working for English #10603

@zinnen

Description

@zinnen

In which file did you encounter the issue?

python-docs-samples/speech/microphone/transcribe_streaming_mic.py

Did you change the file? If so, how?

  • add credentials in the beginning

  • change language_code to de-DE or fr-FR

  • line 174 ff (just print the transcript and the is_final state continue afterwards)

transcript = result.alternatives[0].transcript
print(transcript, result.is_final)
continue

Describe the issue

in English, the is_final state will turn to true (everything works fine), but does not for German, French or Spanish
the end of sequence is not detected or returned

Please replace *.json by the real json-file-name
githubSpeechToText.txt

image image image

Metadata

Metadata

Assignees

Labels

api: speechIssues related to the Speech-to-Text API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions