Emic 2
usabob01
Posts: 15
in BASIC Stamp
I need some help in the complete code to make a song play on a basic stamp2/emic2. I always see this but not the complete code so I can learn how it all works.
This is not the complete song just part of it .
v5
S [:phone arpa speak on][:rate 100][:n2][:dv ap 200 sm 100 ri 100 f4 4600][ow<200,18>ow<200,15> sey<400,11> kae<400,15>nyu<400,18>w siy<600,23> _<300> bay<350,27> dhah<50,25> dao<400,23>nz rr<400,15>lliy<400,17> llay<600,18>t _<300> wah<200>t sow<200> praw<600,27>dlliy<200,25> wiy<400,23>hxey<400,22>eld _<300> ae<lldheh<600,18>r _<300> ow<400> sey<400,23> dah<400>z dhae<200,23>ae<200,22>tstah<400,20>r spae<400>ngel<400>d bae<400,25>nrr<200,28>rr<200,27>yxeh<200,25>eh<200,23>t wey<800,23>ey<150,25>ey<150,23>ey<1200,22>v _<900>fow<300,18>rdhah<300> llae<900,23>ae<400,25>nd ah<300,27>v dhah<300,28>friy<1000,30>iy<1000,35> _<900> ae<300,23>nd dhah<300,25> hxow<1000,27>m _<600>ah<300,28>v dhah<1000,25> brrey<1500,23>v _<900>][:n0]
This is not the complete song just part of it .
v5
S [:phone arpa speak on][:rate 100][:n2][:dv ap 200 sm 100 ri 100 f4 4600][ow<200,18>ow<200,15> sey<400,11> kae<400,15>nyu<400,18>w siy<600,23> _<300> bay<350,27> dhah<50,25> dao<400,23>nz rr<400,15>lliy<400,17> llay<600,18>t _<300> wah<200>t sow<200> praw<600,27>dlliy<200,25> wiy<400,23>hxey<400,22>eld _<300> ae<lldheh<600,18>r _<300> ow<400> sey<400,23> dah<400>z dhae<200,23>ae<200,22>tstah<400,20>r spae<400>ngel<400>d bae<400,25>nrr<200,28>rr<200,27>yxeh<200,25>eh<200,23>t wey<800,23>ey<150,25>ey<150,23>ey<1200,22>v _<900>fow<300,18>rdhah<300> llae<900,23>ae<400,25>nd ah<300,27>v dhah<300,28>friy<1000,30>iy<1000,35> _<900> ae<300,23>nd dhah<300,25> hxow<1000,27>m _<600>ah<300,28>v dhah<1000,25> brrey<1500,23>v _<900>][:n0]
Comments
I normally work with the emic2 using a propeller and its SPIN language, so the above code may or may not work, give it a try...
SEROUT EMIC_TX, EmicBaud, [:phone arpa speak ON][:rate 100][:n2][:dv ap 200
!
Thanks Bob
You have some parameters that may not be supported by EMIC2...
know what it is
Thanks
Bob
SEROUT EMIC_TX, EmicBaud, ["P0", CR]
Lots more info - http://www.grandideastudio.com/emic-2-text-to-speech-module
Needs some help
Thanks
Bob
I see that you are trying to play the Star Spangled Banner -
I think your problem may just be a syntax error in the EMIC data - look like you copied incorrectly.
Specifically this piece "ae<lldheh<600,18>r> ...
If the syntax is incorrect, you will get errors. Try playing small pieces that work and keep adding more data - if you get an error it will be easier to find..
From the EMIC2 documentation:
I realize it probably is just a syntax is incorrect but that's what I need is the correct programing to make it work. Just like the song above.
I don't know how to make it play because I have not seen the correct lines of code to make it work on a basic stamp2
Thanks for all your help
Thanks,
Bob
SEROUT EMIC_TX, EmicBaud, ["P0", CR]["
^
Don't forget the "S" at the beginning of "S[:phone arpa speak on]"....
Thanks So Much!
Bob
From one old retired guy to another!
Wrong forum!!!
There may be an Arduino forum somewhere with members as smart, friendly and helpful as you find here.
But I doubt it.
I guess your Google button is broke?
https://www.parallax.com/downloads/emic-2-arduino-example-code
We're REALLY friendly and helpful here!
Actually Parallax has an Arduino code example for the EMIC 2 here:
https://www.parallax.com/downloads/emic-2-arduino-example-code
See two posts above.
Thanks,
Bob
Opps! Missed that - sorry...
Bob -it is same principle - you are sending a text string to the EMIC 2
Just replace the first string with the second...
and delete this line " emicSerial.print("D1\n");"
Bob