Text-to-Speech service provided by Microsoft AzurePrice: 0.02 PTC / k characters
Request
Header Params
Body Params application/xml
Example
<speakversion='1.0'xml:lang='en-US'><voicexml:lang='en-US'xml:gender='Male'name='en-US-ChristopherNeural'>
I'm excited to try text to speech!
</voice></speak>
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/cognitiveservices/v1' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'X-Microsoft-OutputFormat: riff-24khz-16bit-mono-pcm' \
--header'Content-Type: application/ssml+xml' \
--data-raw'<speak version='\''1.0'\'' xml:lang='\''en-US'\''>
<voice xml:lang='\''en-US'\'' xml:gender='\''Male'\'' name='\''en-US-ChristopherNeural'\''>
I'\''m excited to try text to speech!
</voice>
</speak>'