播放来自url的声音-Node.JS(Google-TTS)

问题描述 投票:0回答:1

我正在尝试在Node.JS中使用Google文本语音API。我正在使用google-tts-api生成api链接,现在想播放它们。是否有任何节点库可以播放来自Weblink的声音?

var tts = require('google-tts-api')
tts(text,"de-DE",1).then(function (url){
    playSound(url)
})
function playSound(url){
//Some code, that is able to play the audio from the url.
 }
javascript node.js google-api node-modules text-to-speech
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.