Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
How do I get the audio output from this website?

Newbie in javascript here, I'm trying to get the output from a simple text-to-speech site (the URL changes to the file location) and play it. After looking online I tried this:

var request = require('request');
function tts(text) {
    var r = request.get(`https://tts.cyzon.us/tts?text='${encodeURI(text)}'`, function(err, res, body) {
        let audio = new Audio(r.uri.href);
        audio.play();
    });
}

... which didn't work. How do I actually do this?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

audio, video, etc in nodejs can you stored in your db in the form of bytes. You can open a file by creating a readstream and then writing the buffer got from the website to the file. You can then open the file and play the audio

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda