locked
Bing Speech API (Text To Speech) rest api response code 503 RRS feed

  • Question

  • When i request the bing speech rest api, I got an 503 error and do not return a result. 
    In the past, it's worked.But the recent response has received 503 code.

    The api - https://speech.platform.bing.com/synthesize

    I found if the ssml's lang is try to use 'zh-TW', it is not worked.
    But if the ssml's lang is try to use en-US, it is worked.
    Any difference? or how to resolve?


    Monday, October 1, 2018 8:25 AM

Answers

  • Hi,

    Sorry for all inconveniences. I can't reproduce your error. It works for me. We'd like to work with you further on this issue. Can you please email us at azcommunity@microsoft.com? Please provide us with your subscription ID and the URL for this thread.

    Regards,

    Yutong

    Thursday, October 4, 2018 6:02 PM

All replies

  • Hi fourjay,

    Can you share your code snippet, X-Microsoft-OutputFormat used, and your XML file you are sending to the API?

    Thanks.

    James


    • Edited by James Lee - MSFT Tuesday, October 2, 2018 12:10 AM asking for more details
    Monday, October 1, 2018 9:34 PM
  • Hi the ssml sample below:

    <?xml version="1.0"?><speak version="1.0" xml:lang="zh-TW"><voice xml:lang="zh-TW" xml:gender="Male" name="Microsoft Server Speech Text to Speech Voice (zh-TW, Yating, Apollo)">微軟是全球科技產業的領航者,提供全球領先的軟體、服務、設備和解決方案,自 1975 年成立以來,一直致力於幫助個人和企業用戶,全面發揮科技潛能,實現夢想。四十多年來,微軟一直專注於技術創新與變革,透過卓越的軟體、設備和服務,能夠幫助用戶提昇生活和工作生產力,讓數億的使用者真正受益於科技。微軟公司總部位於美國華盛頓州 Redmond,在全世界超過 190 個國家和地區設有分公司或是分支機構,擁有超過 125,000 名員工。微軟執行長 Satya Nadella 在上任後提出了新願景:「在這個行動優先、雲端至上的世界裡,微軟的核心競爭力,就是成為一個提供生產力與平台的公司,幫助在這個地球上的每一個人到每一個組織,都能貢獻更多、成就更大。」台灣微軟成立於 1989 年,身為政府、學校與企業最值得信賴的夥伴,始終致力於幫助台灣提升創新力、競爭力以及促進經濟繁榮,共同來亮點台灣!</voice></speak>

    And the  X-Microsoft-OutputFormat use riff-16khz-16bit-mono-pcm

    Thanks

    • Edited by fourjay Tuesday, October 2, 2018 2:38 AM
    Tuesday, October 2, 2018 2:35 AM
  • Can you try this XML payload? I did find a control character when copying the content.  It looks similar, but what I did was copied the sample from here and made the necessary changes:

    https://docs.microsoft.com/en-us/azure/cognitive-services/speech/api-reference-rest/bingvoiceoutput

    <speak version='1.0' xml:lang='zh-TW'><voice xml:lang='zh-TW' xml:gender='Female' name='Microsoft Server Speech Text to Speech Voice (zh-TW, Yating, Apollo)'>微軟是全球科技產業的領航者,提供全球領先的軟體、服務、設備和解決方案,自 1975 年成立以來,一直致力於幫助個人和企業用戶,全面發揮科技潛能,實現夢想。四十多年來,微軟一直專注於技術創新與變革,透過卓越的軟體、設備和服務,能夠幫助用戶提昇生活和工作生產力,讓數億的使用者真正受益於科技。微軟公司總部位於美國華盛頓州 Redmond,在全世界超過 190 個國家和地區設有分公司或是分支機構,擁有超過 125,000 名員工。微軟執行長 Satya Nadella 在上任後提出了新願景:「在這個行動優先、雲端至上的世界裡,微軟的核心競爭力,就是成為一個提供生產力與平台的公司,幫助在這個地球上的每一個人到每一個組織,都能貢獻更多、成就更大。」台灣微軟成立於 1989 年,身為政府、學校與企業最值得信賴的夥伴,始終致力於幫助台灣提升創新力、競爭力以及促進經濟繁榮,共同來亮點台灣!</voice></speak>


    Tuesday, October 2, 2018 7:27 PM
  • Hi James

    I try and it still not worked.The response info below:

    statusCode: 503,

    statusMessage: 'Service Unavailable'

    Has any other idea or solutions?

    Thanks 


    Wednesday, October 3, 2018 2:38 AM
  • This is strange.

    Can you try the Azure version of speech service? https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/overview

    You will need to go back into the portal and spin up this service, use a different key, and endpoint URI.

    REST API doc here: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/rest-apis

    Thanks.

    James

    Wednesday, October 3, 2018 4:08 PM
  • Hi James:

    I try to request different endpoint , it still not work.

    But I found if the content keep only very few words, it can work.And I know the 1024 characters limit, but the content I request should not be exceed.

    What could be the reason?

    Thanks.


    • Edited by fourjay Thursday, October 4, 2018 10:59 AM
    Thursday, October 4, 2018 10:59 AM
  • Hi,

    Sorry for all inconveniences. I can't reproduce your error. It works for me. We'd like to work with you further on this issue. Can you please email us at azcommunity@microsoft.com? Please provide us with your subscription ID and the URL for this thread.

    Regards,

    Yutong

    Thursday, October 4, 2018 6:02 PM