File size: 483 Bytes
ed253f7
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
curl --request POST \
     --url https://play.ht/api/v2/tts \
     --header 'AUTHORIZATION: Bearer 2c7ecfc607944ea0b73aec38c2bc9b72' \
     --header 'X-USER-ID: jH5WHqrCUpOQ9XQytif95UKhhr63' \
     --header 'accept: text/event-stream' \
     --header 'content-type: application/json' \
     --data '
{
  "text": "Check out this realistic generated speech!",
  "voice": "s3://peregrine-voices/oliver_narrative2_parrot_saad/manifest.json",
  "voice_engine": "PlayHT2.0"
}
'