Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Speech API python client library method `streaming_recognize()` doesn't return a result with `is_final` set to True

Aperta
#12,570 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@engelke ci sta già lavorando.

Dal 8/9/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

priority: p2 samples triage me type: bug

In which file did you encounter the issue?

Did you change the file? If so, how?

I have changed the line 299

 config = speech.RecognitionConfig(
        encoding=speech.RecognitionConfig.AudioEncoding.LINEAR16,
        sample_rate_hertz=SAMPLE_RATE,
        language_code="en-US",
        max_alternatives=1,
    )

into

 config = speech.RecognitionConfig(
        encoding=speech.RecognitionConfig.AudioEncoding.LINEAR16,
        sample_rate_hertz=SAMPLE_RATE,
        language_code="ja-JP",
        max_alternatives=1,
    )

Describe the issue

streaming_recognize() method doesn't work properly. For even when a speaker utters a simple greeting like こんにちは in a very silent environment, this method returns StreamingRecognizeResponse object with a result of is_final == False. And always returns a result with is_final set to True exactly 90 seconds later.
this doesn't happen when the language is English or Chinese.
The same thing also happens in transcribe_streaming_infinite_v2.py

I am not sure if this report should be post here for this seems to be more internal problem.
Appreciate any help or clues anyways.

Lingua principale
Jupyter Notebook
Stelle
8.1k
Fork
6.7k
Merge medio
4g 4h
PR unite (30g)
8

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GoogleCloudPlatform/python-docs-samples

Tutte le issue di GoogleCloudPlatform/python-docs-samples

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.