【问题标题】:Google text to speech tts api doesn't seems to work谷歌文本到语音 tts api 似乎不起作用
【发布时间】:2016-08-24 00:27:14
【问题描述】:

您好,我尝试使用 Google TTS api 将文本转换为语音。

http://translate.google.com/translate_tts?tl=en&q=Hello

但是这不能在浏览器中播放。有什么问题?这一直有效到去年。

【问题讨论】:

    标签: php google-text-to-speech


    【解决方案1】:

    Google 已弃用免费访问 API,您现在需要 API 密钥。详情请见here

    【讨论】:

      【解决方案2】:

      here 的示例对我有用:

      wget -q -U Mozilla -O output.mp3 \
      "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Test&tl=En-gb"
      

      【讨论】:

        猜你喜欢
        • 2013-04-10
        • 2014-01-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-12-21
        • 1970-01-01
        相关资源
        最近更新 更多