Shop OBEX P1 Docs P2 Docs Learn Events
EMIC2 ASCII Commands Through BS2 — Parallax Forums

EMIC2 ASCII Commands Through BS2

I have the used the .bs2 files for the EMIC2 and they work fine. I am trying to utilize the Wx ASCII command where x is a value of 75 to 600. The "W" is top vary the speech rate. I figured I would be able to use the same format as the "V", for the volume, that was in the demo .bs2 file.

I have tried the following code snippets with neither one working.


SEROUT EMIC_TX, EmicBaud,["W300", CR]
SERIN EMIC_RX, EmicBaud,[WAIT(":")]

SEROUT EMIC_TX, EmicBaud,["W","300", CR]
SERIN EMIC_RX, EmicBaud,[WAIT(":")]

Even the website www.grandideastudio.com did not have any additional information on the proper coding format for the other parameters in the Command Set.

Thank you for any assistance in this endeavor.

Comments

  • TheTech69TheTech69 Posts: 51
    edited 2015-11-10 18:42
    UPDATE:

    ok...the following snippet does set the speech rate:

    SEROUT EMIC_TX, EmicBaud,["W300", CR]
    SERIN EMIC_RX, EmicBaud,[WAIT(":")]

    However, the EMIC2 will not play the text I have: "S","Does this sound fast?"

    When I change the code to the following:

    SEROUT EMIC_TX, EmicBaud,["W:300", CR]
    SERIN EMIC_RX, EmicBaud,[WAIT(":")]

    the sound will play AND at the speech rate number I assign but only after I reload the program with the change.

    So why will it not work all together and play the text after the parameter of the speech rate and volume level has been set?

Sign In or Register to comment.