Closed DerrickYang007 closed 5 years ago
Thanks for reaching out to us , but at this time it does not look like you are referring to a document but to a specific scenario . If that's the case we request you to please post your question on MSDN and other forums , we have our engineers and others who are monitoring them and will be happy to help . If you have a document which you are following and if you think it needs an update , please let us know about that here .
I have tried to post the question upto the MSDN forum. I registered it ,But when I asked question,then website telled me my account shoud be verified? How to be verified?Why I can't ask a question after I registered its account legally? Then I tried to post the question up to Stack Overflow website. But when I asked a question.It telled me ,the website page should be loaded some file from Google js file .I am in China , Google is blocked by Great firewall.So I can't ask question on Stack Overflow
SO ,I only come here to ask my question. I am in the mainland of China. Can you help me ?
I have posted my question on the MSDN forum succesfully at last after I have deleted images and links in the post body.Thank you for your attention.
Since you have posted this on the forum , we are going ahead and closing this issue for now .
The neural voice synthersized by azure TTS is trembling,unclear,unemotional,unnatural. I listened the voice on my iPhone 6 . I listened the voice synthersized by IBM watson TTS on my iPhone6 ,too.It is emotional,and natural. So,what is the core reason? Anybody can help me to check the code? check the configuration. -----------------------------------------code-------------------------------------------------------------- var ShortName = 'en-US-JessaNeural'
//Southeast_Asia var MsKey = '' var MsUri = 'https://southeastasia.api.cognitive.microsoft.com/sts/v1.0/issueToken' var BaseUrl = 'https://southeastasia.tts.speech.microsoft.com'
// Gets an access token. function getAccessToken(subscriptionKey) { let options = { method: 'POST', uri: MsUri, headers: { 'Ocp-Apim-Subscription-Key': subscriptionKey } }
return rp(options); }
// Converts text to speech using the input from readline. function textToSpeech(accessToken, text) { // Create the SSML request. let xml_body = xmlbuilder.create('speak') .att('version', '1.0') .att('xmlns', 'https://www.w3.org/2001/10/synthesis') .att('xmlns:mstts', 'https://www.w3.org/2001/mstts') .att('xml:lang', 'en-us') .ele('voice') .att('xml:lang', 'en-us') .att('name', ShortName) .ele('mstts:express-as') .att('type', 'cheerful') .ele('prosody') .att('pitch', 'default') .att('rate', 'slow') .att('volume', 'loud') .txt(text) .end(); // Convert the XML into a string to send in the TTS request. let body = xml_body.toString(); // console.log('xml_body=' + xml_body) let options = { method: 'POST', baseUrl: BaseUrl, url: 'cognitiveservices/v1', headers: { 'Authorization': 'Bearer ' + accessToken, 'cache-control': 'no-cache', 'User-Agent': 'YOUR_RESOURCE_NAME', 'X-Microsoft-OutputFormat': 'audio-24khz-160kbitrate-mono-mp3', 'Content-Type': 'application/ssml+xml' }, encoding: null, body: body }
request_ = rp(options).on('response', (response) => { if (response.statusCode == 200) { console.log(new Date().getTime() + '---文件获取成功Your file is ready.') RequestOk = true; } });
return request_; };