Speech API python client library method `streaming_recognize()` doesn't return a result with `is_final` set to True
維護者通常 1 天內回覆
@engelke 已經在處理了。
開始於 2024年9月8日。
評估
這個 Issue 還沒有評估資料。
描述
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.
- 主要語言
- Jupyter Notebook
- 星號
- 8.1k
- 分支
- 6.7k
- 平均合併
- 4 天 4 小時
- 30 天內合併 PR
- 8
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
GoogleCloudPlatform/python-docs-samples 的其他 Issue
-
samples
難度 2/5 1-3 小時 新手友好度 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
維護者通常 1 天內回覆
-
samples
難度 1/5 1 小時以內 新手友好度 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
維護者通常 1 天內回覆
-
samples
難度 2/5 1-3 小時 新手友好度 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
維護者通常 1 天內回覆
-
chore(generative_ai) Update model references for generative_ai samples可能重新可做 @XrossFox 於 152 天前認領,目前沒有進行中的 PR。 未關閉samples
GoogleCloudPlatform/python-docs-samples#14117 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Fix Pipeline dependency issues for geospatial-classification/serving_app可能重新可做 @XrossFox 於 164 天前認領,目前沒有進行中的 PR。 未關閉samples
GoogleCloudPlatform/python-docs-samples#14091 · 已指派 1 人 ·
維護者通常 1 天內回覆