youtube-streaming-translator-python
youtube-streaming-translator-python copied to clipboard
实时翻译油管直播,不知道怎么优化,闲置中
一直遇到这个问题,尝试了好多办法都无法解决。我应该怎么处理? Connecting to youtube... Traceback (most recent call last): File "E:\youtube-streaming-translator-python-master\main.google.py", line 449, in video = pafy.new(url) File "E:\youtube-streaming-translator-python-master\venv\lib\site-packages\pafy\pafy.py", line 124, in new return Pafy(url, basic, gdata, size, callback, ydl_opts=ydl_opts)...
第一次使用,串的是Google翻譯的API 
中英翻译
你好,我想知道这个怎么才能做到中英翻译。 ``` py self.config = speech.types.RecognitionConfig( encoding=speech.enums.RecognitionConfig.AudioEncoding.LINEAR16, sample_rate_hertz=44100, language_code='en-US', max_alternatives=1, enable_automatic_punctuation=True, # 启用标点符号 diarization_config=speaker_diarization_config, # 区分讲话人 speech_contexts=speech_contexts # 语音自适应 ) ``` 我将上述的 **language_code** 写成了 **en-US** 但是我发现我实时翻译这个的时候,**http://127.0.0.1:5000** 这个网页没有任何输出 ``` Speech2text timeout...
如题 另外在简介里写点英文的东西 这样应该能火(刚需