Как воспроизвести ответ, который я получил, чтобы преобразовать текст в речь, используя voicerss?

import unirest

response = unirest.post("https://voicerss-text-to-speech.p.mashape.com/?key=secret",

   headers={
     "X-Mashape-Key": "secret",
     "Content-Type": "application/x-www-form-urlencoded"
   },

   params={
     "c": "mp3",
     "f": "8khz_8bit_mono",
     "hl": "en-us",
     "r": 0,
     "src": "Hello, world!"} )

Я использовал: reponse.body() and response.play()Оба они не работают. Какой точный фрагмент для этого?


response.raw_body: "ID3\x04\x00\x00\x00\x00\x00\x19TSSE\x00\x00\x00\x0f\x00\x00\x03Lavf54.21.100\x00\xff\xe38\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00Info\x00\x00\x00\x07\x00\x00\x00 \x00\x00\t\xd8\x00\x1d\x1d\x1d$$$+++333:::AAAIIIPPPWWWW___fffmmmuuu|||\x83\x83\x83\ X8A \ X8A \ X8A \ x92 \ x92 \ x92 \ x92 \ x99 \ x99 \ x99 \ xa0 \ xa0 \ xa0 \ xa8 \ xa8 \ xa8 \ XAF \ XAF \ XAF \ XB6\ XB6\ XB6\ XBE \ XBE \ XBE \xc5\xc5\xc5\ XCC \ XCC \ XCC \ XCC \ xd4 \ xd4 \ xd4 \ XDB \ XDB \ XDB \ XE2 \ XE2 \ XE2 \ хеа \ хеа \ хеа \ XF1 \ XF1 \ XF1 \ XF8 \ XF8 \ XF8 \ XFF \ XFF \xffLavf54.21.100\x00\x00\x00\x00\x00\x00\x00\x00$\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\ XFF \ XE3 \ x18 \ XC4\x00\x00\x00\x03H\x00\x00\x00\x00\xffx?\xf2\ X07 \ XF8 \ x14 \ x1f \ XFE \ xf2 \\ XFF \ XFF \xe5\x9d\ п \ xe0\xbf\xff\xfd\x86\xbfFo\xff\xff\xf6WB)\x03\xa1\x04\x13\xff\xff\xff\xcc\x0cp\x00\x00\x82\xb0\xc7\xff\xfe\x84\x86 u\x16\xe8\xff\xbc\xcc\x1d\ XFF \ XE3 \ x18 \ XC4;! \ X00\x00\x03H\x01@\x00\x00\xb7\ti15\xa0\ XFB \xa8\xaca\xc2x9JM\xf63>H\x0c @\x974O\xad4\ XDc\xc0p\x06\xc1A)\xfc\xf9\xe7\xfe.\x8d\xe1B\x15\xbf\xaf\xe9\x03\x1e\xc8\xc7\xd07\x9f\xfd\xa8 @\x98\xad\ XFF \ XE3\x18\xc4v\x0c\ XE2 \ xc2 \ xa4 \ x01 \ x81 \ x10 \ x00 \ x13 \ x9d \ XFF \ XFF \ XFF:@\xbaM\ XF4\x03\xe1\x9at6\ XDF \ XFF \ XFF \ XFF \xe8Z\x19\ XFF \ xd0 \ X0F \x15+: W N\x17\x87\ XC4 \ Xee \ XFE \xe7\x995\x1e\x8b\ XCD \xcfE\x7f0\x0c$\x1d\x15O\ X Е8 \ xa2 \ xa1 \ XD2\xb7\xd5\x04\x8e\ XFF \ XE3 \ x18 \ XC4}\x15\xA9\xc6\ XC4\x01\xcdH\x00\x1d\x0e\x8b\x19\x7f\xccc\x0b\x01~\ X8A \ х16\ XDF \xf5\xc9\x00\ X1C-S\ Xbb\xeaTg\x01\ XDE%N\ XAD% л \x89&\ п \ xd8 \ xc0 \ т \x91j(\xdbMD\x80r\x06\x15m\ XFEH\x04H\xff\xf3\x88\x1c\xdf\xe4A\xff\xe3\x18\xc4a\x0c!\x82\xd4\x00:\xcaL\x011Q\'n\x8a.&\x1f\x10\x138\xe7v\\9\x0f\xff\xf8N\x0b$\x0c\xff\xda<\x80\xd0\xfe\x85_\xcf\xf8*\tA\xa11\xf7\xf3\xf4\x918<\x9fdW\xff\xe9&P\xc3?\xc7E\xa3\xe7\xd0\xcf\xff\xe3\x18\xc4k\x0f\xf9\xbe\xc4\x00kJp\xb3\x86F\xe7\xfe\x8e5\x1c.\xce\xf12\x10\xcd\xff\x91\x00p!\x81@p\x9c\xff\xca\x82\xe8-\x02\xa0i\np\\\x0b\xc2N\x8a"DH\\\x8dE\xa2V=\x0c39X\xe9\x19\x1c\xd1;\xf5dt\xff\xe3\x18\xc4f\r\xa9\xaa\xc4\x00R\xcep\xac\x8e\xe0\xd8w\x0b\x075\xc4\xa0\xb5\x14c\xa6f\'\xcf:\xbd@_\x17F\xa51d\x90\x16\xab.\x8ch\xce)I\x19\x0ew\x93\x8aF#\xb4\x9aFsU.H\xff\x99\x0e\xe1*t\x13\xd9\x96\x8a\xff\xe3\x18\xc4j\x0eYZ\xc8\x01J\x18\x01H\xff\x85\xb4+\x81T\x9b,\x9ad\x82\xc1#\xb1\x1f\xc9\x00\t\x06\x84+\n\x8a\x95"*\xef\xc1\x16\x08\xc2b\xa7\xc6)\xf4\xb9\xa8\xfe|x\x1cT\x0b\xebt\xea\x15\x0c\x1a\xb5\xca\n\xc3\xbc\x92\x8f\x08\xff\xe3\x18\xc4k\x18\x11Z\x90\x01\x90h\x00\x96\x1a-\xd6t\x92\x8f/\xf5\x9d-\xfd\xe5\x7f\xc4_\xff\xfe\xcf\xfeF\x1a-\xf0\xd2\x8f\x15\xfaVt\xb2\xff\x1e\x10\x8baO\xfe<Q\\e\xfe!\x01@\xfd?\xfd\n\x1f\x07#\x7f\xff\xb5\xb9\xd3\xff\xff\xe3\x18\xc4E\n(\x05\xcc\xf9\xc0\x00\x00\xff\xd8q\xe4S\x8b\x9c\xff\xf9\x8f\xff\xfci\xb3\x93\x1f\xff\xff\xd3\x9f\xe6\xb1^\xf9\\\x89\x93\x0e\xad\x9c\x9a\x1b\xbf\xcf\x81i\xa9\xe5b\x90\x95\xa6\xd5|\xf1\xfe\xc3п.н. \ XAD \x08\x05\x19p\x90== п \ XFF \ XE3\x18\xc4W\x00\x00\x03H\x01@\x00\x00\xf9\x996}<\ x81 \ x00F \ x1d \ x89) ^ \ xa6\ xd4 \ xf56\ XB0 \ xc2 \ x88N \ x8e {\ XF4 \ РФА \ XFF \ XDD \ x9f \ XCD \ xef9 \ хк \ xa8 \ XB2 \ XDF \ xc2 \ xadr \ xd9 \ xfdvR; \ xf5 \ XAF \ XFE \ XAD? E \ x87P \ x0e \ xd1 \ x93 \ XDA \ XB5 \ xeaqj \ x04 \ XFF \ XE3 \ x18 \ XC4 \ x92 \ x0b \ xb9 \ xaaP \ x01 \ X8A (\ x00 \ xc4p \ x93 \ xa8 $ \ xa4 \ x9d \ xd3E \ x11 \ XF4 \ x00 \ X1C \ x1d \ x92MsZS \ x04 \ XCB \ x84 \ xd94 \ x01V4O ~ \ XAC \ x8c \ x19 \ x90z \ XBF \ XF1 \ xf0 ~ \ x12 \ x03 \ XA3 \ xc8 \ xa7 \ XE3 \ xe0, \ x13 \ x00 \ xf2 \ x84 = пс \ x0e \ x1d \ xf9 \ X0F \ XDF \ хеа \ XFF \ XE3 \ x18 \ XC4 \ x9e \ x16y \ x96\ x9c \ x01 \ X9a \ x88 \ X009 \ xf5 \ X9a \ x14 \ XFF \ xf2 \ x80 {\ XFE \ Xab \ x12 @ \ XF4 \ xce \ XFE \ хаа \ x96 & \ xe0 \ x93 \ x10 \ XBF \ xe6d \ x98 \ xf26\ XFF \ xa0 ]/\xf9\x08\x10\x04HW/\xe7\x10,\x05\xbf\xf7/\xffc\x7f\xf2\x0f\xf9\x1a\x14\xff\xec\x0e\r\xbf\xff\xe3\x18\xc4\x7f\x11\xc1z\xbc\x01\xd28\x00\xea\x1c\x81:%\x9a\xfa\xa8\x19\x89гк \xa5\xd6\ Xab\xc7\xc1x\x01\x84\x82Q\ фиксировано \ XF4 \ X1C \ x11 \ x04 \ x91 \ xA9\x16\xf9\ X828 \ XBC \ x16\ TBI\x14\ РФА \x18\xc7\x91\xcb\x92H\xe3\x92\x0e\xbf\xf5(<\ xb2 \ xfd \ x06M \ xff \ xe3 \ x18 \ xc4s \ x0cb \ x16\ xd4 \ x00SDp \ xe4 \ x02 \ xa8 \ x02 \ xa8} x02 x1a7 \ x98 \ x18 \ x8e0 \ x8b \ x90 \ XCD \ X9b \ Xba \ xeb \ x0c \ XC4 \ x13 \ xb7 \ xd2T + \ x01Dzt \ Xee \ xa8P @ \ x05 \ X Е8 \ XB2 \ XCF \ xe1 \ x95 \ xdbKu \ xbb` \ x00] \ xd3O \ фиксировано \ xa5 \ XD2 \ x92 \ x80If \ x95 \ XCD \ XF8 \ xe5C \ xa0 \ XFF \ XE3 \ x18 \ XC4 | \ x0c \ xb9j \ XCC \ x00SNM \ xf8F \ xf9 \ xb5t \ x11 \ x80 \ x14! R \ XCD \ XFE} \ x10 \ x08R \ XFF \ xa8Q (\ XFF \ xa0 \ x10 \ xa0 & \ X Е8 \ XFF \ XE2 \ X8A \ x11 \ хаа \ x7f \ хк \ xffR \ XB1 \ x94 \ xbdf3 \ Xab \ x14 \ xa1L [мкФ \ xd6R \ x95o \ XFF \ ХеР \ xa1U \ x99 \ XBD {\ XFD \ XFF \ XE3 \ x18 \ XC4 \ x84 \ x0c \ xa1. \ XE6 @ КТЛ? \ XFD \ xd2b \ xb1h \ xe6GG \ Xab \ x14 \ xa5 \ Xbb \ Xba \ x0eYN \ xb9_ \ xa2 \ x01 \ x04 \ x98b \ XFF \ x87 \ XFF \ x14O \ xfdHX \ xc7 \ XFF \ xf2 \ xb0x \ xb3 * \ x7f \ XFF \ XA3% \ хаа $ \ x06\ X0F \ '\ XFF \ xff1 \ xa8 \ XE6 # \ xa29 \ x7f \ XFF \ XFF \ XFF \ XE3 \ x18 \ XC4 \ x8c \ г \ т \' \ x1eXb \ x04N \ xccckU1 \ XB4 \ xff_ \ XFF \ xfeb \ xa0 \ xf5Ac \ x8e_ \ XAE / LAME3.99.5UUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ x92 \ x0b \ XF1 \ хеа \ XB4 \ xc9B \ x10 \ x00UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ x9d \ x0e {\ x12 \ x84) \ x81 (\ x02UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ x9e \ x00 \ x00 \ x03H \ x01 \ xc0 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUULAME3.99.5UUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU \ XFF \ XE3 \ x18 \ XC4 \ XC4 \ x00 \ x00 \ x03H \ x00 \ x00 \ x00 \ x00UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU"

0 ответов

Другие вопросы по тегам