Shop OBEX P1 Docs P2 Docs Learn Events
Emic 2 DecTalk — Parallax Forums

Emic 2 DecTalk

Ron CzapalaRon Czapala Posts: 2,418
edited 2012-07-14 19:31 in General Discussion
I've been playing around withe the DecTalk parser on the Emic 2 module.

You can make some pretty funny voice modifications.

Here is a link to a sample of the "All your base are belong to us." snippet.
DAT
robot byte "[:rate 200][:n0][:dv ap 90 pr 0] All your base are belong to us.",0

robot2 byte "[:rate 200][:n0][:dv ap 120 hr 120 pr 99 ri 80 sx 0 sm 90 hs 90] All your base are belong to us.",0

Comments

  • Can you show me the complete code to make this work on a basic stamp 2 My trouble is I see your DecTalk parser code but I do not know how to make it work.
    thanks
    bob
  • MikeDYurMikeDYur Posts: 2,176
    edited 2017-05-08 01:05
    @Ron, I have been waiting for someone to tinker with the old dude, can't wait to see what you have done for him.
  • Actually most of the experimenting I did with the EMIC2 was done with the board connected to my PC via a Parallax USB2SER interface - not a BS2.

    https://www.parallax.com/product/28024

    I wrote a HTML Application (.hta extension) that used vbscript and the MSCommLib.MSComm object for communicating with the serial interface.

    This what the HTML application looks like:

    EMIC2%20HTA.JPG


    This approach let me interactively play with EMIC commands without having to compile and load them into a microcontroller and also allowed larger EMIC2 files.

    The attached zip file has the EMIC_2.HTA if you're interested - it works under Windows 7 if you have if you have the VB OCX and DLL installed and licensed on your PC.




    1074 x 572 - 57K
  • I have everything to duplicate your setup except Visual Basic, going to look into getting that.

    It will be fun to tinker with EMIC2, and not be so time consuming.

    And I have needed a reason for using USB2SER interface for the first time.

    Thanks for posting Ron!
    1000 x 1000 - 485K
  • Ron CzapalaRon Czapala Posts: 2,418
    edited 2017-05-09 14:30
    MikeDYur wrote: »
    I have everything to duplicate your setup except Visual Basic, going to look into getting that.

    Let me clarify a bit - there are two objects that probably won't work in the HTML application unless the license is present (supplied by VB6 being installed)

    Even though the OCX files may be present, you can't use them in vbscript unless certain registry entries are present with the license info...

    The serial port communication component and the Common Dialog component (for opening and saving files)

    Set MSComm1 = CreateObject("MSCommLib.MSComm")

    Set objDlgs = CreateObject("MSComDlg.CommonDialog") 'if licensed object


    Of course you could use some other serial port software like the propeller Parallax Serial Terminal and paste the EMIC2 commands and send, but I wanted to save and load the data.


Sign In or Register to comment.