locked
speak method api example on http://msdn.microsoft.com/en-us/library/ff512420.aspx for multiple words RRS feed

  • Question

  • Hi,

    I am using the example at 

    http://msdn.microsoft.com/en-us/library/ff512420.aspx

    for the text to speak engine. The documentation on the page states

    text

    Required. A string containing a sentence or sentences of the specified language to be spoken for the wave stream. The size of the text to speak must not exceed 2000 characters.

    The php example works fine on my server as is, however when I change the text from

    $inputStr = "Welcome";

    to

    $inputStr = "Welcome Dave";

    I get no audio response. Could you explain how I can make the example work with sentences.

    Thanks

    Dave

    Thursday, February 7, 2013 11:58 AM

Answers

  • Ok figured it out now, the text should have the spaces encoded

    $inputStr = urlencode("Welcome Dave");

    Cheers


    Dave


    Dave

    Thursday, February 7, 2013 2:57 PM

All replies

  • Ok figured it out now, the text should have the spaces encoded

    $inputStr = urlencode("Welcome Dave");

    Cheers


    Dave


    Dave

    Thursday, February 7, 2013 2:57 PM
  • Hi,

    How are you doing it? Are you using C# or the Php example on the page?

    I am not able to get how to implement the C# example.. There seems to be no code for the input string at all..

    Tuesday, March 19, 2013 2:14 AM
  • Hi,

    I am using the PHP example which worked fine.

    Cheers


    Dave


    Dave

    Tuesday, March 19, 2013 12:39 PM
  • Great... I'm assuming you're using VS 2012 for development.

    Could you give me an outline on how you created the project. I'm completely new to VS2012 and developing apps in Windows..

    I can't find a way to add a php file to the code. Like the kind of app I need to select while creating a new project and further down.

    Wednesday, March 27, 2013 3:22 AM
  • php is server side code, whereas the c# is client side code (I think, anyway I use javascript!).

    Seems like maybe you need to find out more about client/server computing, get a web hosting account etc.

    Cheers

    Dave


    Dave

    Wednesday, March 27, 2013 2:24 PM