![](https://res.cloudinary.com/yomaru/image/upload/v1696877395/obsidian/fuq6btvsiucnkp1ebwu4.png) [Unreal Speech: Text-to-Speech API for Scale](https://unrealspeech.com/) ## What is it? text to speech api using AI ```js // Short endpoint: /stream // - Up to 500 characters // - Synchronous, instant response (0.3s+) // - Streams back raw audio data const axios = require('axios'); const fs = require('fs'); const headers = { 'Authorization': 'Bearer YOUR_API_KEY', }; const data = { 'Text': '<YOUR_TEXT>', // Up to 500 characters 'VoiceId': '<VOICE_ID>', // Dan, Will, Scarlett, Liv, Amy 'Bitrate': '128k', // 320k, 256k, 192k, ... 'Speed': '0', // -1.0 to 1.0 'Pitch': '1', // -0.5 to 1.5 'Codec': 'libmp3lame', // libmp3lame or pcm_mulaw }; axios({ method: 'post', url: 'https://api.v6.unrealspeech.com/stream', headers: headers, data: data, responseType: 'stream' }).then(function (response) { response.data.pipe(fs.createWriteStream('audio.mp3')) }); ``` ## What service it provide?