"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "6015f91a5a28548a597f8d24341d089fe04994e8"
Unverified Commit 5d1fed07 authored by bhuang's avatar bhuang Committed by GitHub
Browse files

Update automatic_speech_recognition.py (#18339)

parent 985c7e3a
...@@ -168,7 +168,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline): ...@@ -168,7 +168,7 @@ class AutomaticSpeechRecognitionPipeline(ChunkPipeline):
pronounced after `0.5` and before `0.6` seconds. If set to `"word"`, the pipeline will return pronounced after `0.5` and before `0.6` seconds. If set to `"word"`, the pipeline will return
`timestamps` along the text for every word in the text. For instance if you get `[{"text": "hi ", `timestamps` along the text for every word in the text. For instance if you get `[{"text": "hi ",
"timestamps": (0.5,0.9), {"text": "there", "timestamps": (1.0, .1.5)}]`, then it means the model "timestamps": (0.5,0.9), {"text": "there", "timestamps": (1.0, .1.5)}]`, then it means the model
predicts that the word "hi" was pronounces before 0.5 and after 0.9 seconds. predicts that the word "hi" was pronounced after `0.5` and before `0.9` seconds.
Return: Return:
`Dict`: A dictionary with the following keys: `Dict`: A dictionary with the following keys:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment