amazon-polly

Google Cloud Text-to-Speech Interface Confusion (How do I download the mp3 files?)

坚强是说给别人听的谎言 提交于 2019-12-06 11:34:27
I'd like to preface this with the fact that I am not a programmer/developer - I am a multimedia designer. I use text-to-speech to generate placeholder audio files that can be used to time animations before we record the official audio narration. Previously I was using Amazon Polly but I wanted to give Google Cloud a try. However, I'm having the hardest time actually figuring out how to generate the mp3 files and save them. With Amazon Polly, you simply go to a website, enter your text into a field, and click a button and it will save your file as an mp3 file. With Google Cloud, it seems far

React Native. MP3 Binary String (Uint8Array(9549)) to stream or file

偶尔善良 提交于 2019-12-06 04:44:21
I am trying to play an audio file with binary string format that Amazon Polly returns. For that, I am using 'react-native-fetch-blob' and reading a stream, but just keep getting errors from the bridge saying 'Invalid data message - all must be length: 8'. It happens when I try to open the stream: ifstream.open() This is the code: //polly config const params = { LexiconNames: [], OutputFormat: "mp3", SampleRate: "8000", Text: "All Gaul is divided into three parts", TextType: "text", VoiceId: "Joanna" }; Polly.synthesizeSpeech(params, function(err, data) { let _data = ""; RNFetchBlob.fs