Check your subscription key and headers.\n") Print("\nStatus code: " str(response.status_code) With open('/var/lib/asterisk/sounds/tts/' caminho '.wav', 'wb') as audio: Response = requests.post(constructed_url, headers=headers, data=body) 'name', 'Microsoft Server Speech Text to Speech Voice (pt-BR, FranciscaNeural)')īody = unescape(ElementTree.tostring(xml_body).decode()) Voice = ElementTree.SubElement(xml_body, 'voice') Xml_body = ElementTree.Element('speak', version='1.0') 'X-Microsoft-OutputFormat': 'riff-8khz-16bit-mono-pcm', 'Authorization': 'Bearer ' self.access_token, Response = requests.post(fetch_token_url, headers=headers) Self.timestr = time.strftime("%Y%m%d-%H%M") Module: “Text To Speech”, File: "/var/www/html/admin/modules/tts/agi-bin/propolys-tts.agi altered " The following procedures were performed in a test environment, the propolys-tts.agi file will be modified and then FreePBX will alert you as per the text below
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |