Please extend DataMarket until Azure is ready for prime time
Even though Azure is available, there are almost no working code examples available on GitHub in any programming language. Here is what a Microsoft Administrator said here recently about Java:
"Asking around internally I learned that we can’t (nor could have) promised a Java app. We would love to share one if and when we can get to it. For now we provide an API and samples as we can."
But there are almost no examples "period".
So can Microsoft extend DataMarket until some appropriate examples are available?
We expect that the end of Azure Marketplace will increase the availability of examples using the Azure token mechanism.
Note that the only change is the token acquisition call. The Translator API works exactly the same: no change to any of the calls to api.microsofttranslator.com. Only change is in how you fill the value of the appid parameter.
Let us know if you have an issue with changing your code.
OK. Thank you.
Here is what I do in Java with DataMarket to do Dutch TTS:
String sWavUrlNL = http://api.microsofttranslator.com/V2/http.svc/Speak?appId=Bearer+http%253a%252f%252fschemas.xmlsoap.org%252fws%252f2005%252f05%252fidentity%252fclaims%252fnameidentifier%3dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%26http%253a%252f%252fschemas.microsoft.com%252faccesscontrolservice%252f2010%252f07%252fclaims%252fidentityprovider%3dhttps%253a%252f%252fdatamarket.accesscontrol.windows.net%252f%26Audience%3dhttp%253a%252f%252fapi.microsofttranslator.com%26ExpiresOn%3d1492122599%26Issuer%3dhttps%253a%252f%252fdatamarket.accesscontrol.windows.net%252f%26HMACSHA256%3dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx%252bc%253d&options=MinSize%7Cmale&text=Ik+loopt...&language=nl-nl
This is assembled in parts. Note that I am choosing "language = nl-nl" and "male" as the voice.
final URL waveUrlNL = new URL(sWavUrlNL);
final HttpURLConnection ucNL = (HttpURLConnection) waveUrlNL.openConnection();
So what I need to know is what is the composition of sWavURLNL that I need to open the connection and return the audio stream. I do not have a problem with getting the token.
An even more fundamental question is whether this is done with BingSpeech (where only a female voice, not a much better male voice is available) or can it be done in TranslatorSpeech (where I hope but don't know that the male Dutch voice is available). In my current DataMarket, both male and female Dutch voices are available, and male is by far the best.