Shop OBEX P1 Docs P2 Docs Learn Events
Speech synth — Parallax Forums

Speech synth

RavenkallenRavenkallen Posts: 1,057
edited 2010-04-17 18:04 in General Discussion
Hey. I am new here and i have been trying to figure this out for a while. I was wondering if someone could make a propeller speech snyth using SPIN. The program would have to be small enough to fit in the RAM and it would need to be easy to use. Like something you could just feed ASCII characters to and it outputs speech on a speaker. I know they have the one object called vocaltract or something, but i don't even know what
·exactly that things does. If you guys have any code/ ideas please share with a rookie..... THANKS IN ADVANCE.yeah.gifjumpin.gifjumpin.gif

Comments

  • ercoerco Posts: 20,260
    edited 2010-04-17 01:52
    Hey, a Propeller text to speech object would make me switch to the DARK SIDE: the Propeller!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • edited 2010-04-17 01:59
    Ravenkallen said...
    Hey. I am new here and i have been trying to figure this out for a while. I was wondering if someone could make a propeller speech snyth using SPIN. The program would have to be small enough to fit in the RAM and it would need to be easy to use.
    A product for the Commodore 64 used 256 allophones and another product was released into the public domain.· I suppose you could get ideas from the public domain project.
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2010-04-17 02:00
    Phil Pilgrim did a phoneme based speech synthesis program using Chip's vocal tract synthesizer. It was done in early November, 2006. I think someone else did a text to phoneme translator.
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2010-04-17 03:37
    @erco: Welcome to the Darkside... [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Are you Propeller Powered? PropellerPowered.com
    Visit the: PROPELLERPOWERED SIG forum kindly hosted by Savage Circuits.
  • Mike GreenMike Green Posts: 23,101
    edited 2010-04-17 04:06
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-17 14:53
    Hey, thanks everybody. Hey, mike thanks for the link. i am checking it out right now.
  • ercoerco Posts: 20,260
    edited 2010-04-17 15:25
    ARRRGGGHHH!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • mctriviamctrivia Posts: 3,772
    edited 2010-04-17 15:27
    i was using this system a year ago. works pretty well but can be difficult to understand. erco the prop is great you really should try it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Lots of propeller based products in stock at affordable prices.
  • bill190bill190 Posts: 769
    edited 2010-04-17 15:47
    I just bought a Propeller Education Kit. I needed to buy the Parallax USB to serial adapter and I couldn't buy just that! (Sort of like when you go to the store to buy bread and come back with more goodies!) burger.gif

    I've got it working and made some blinky lights, but I think I will take my time and read the book. I got it working by just looking at the schematic/drawing on the inside cover of the kit, but then read the instructions (for getting it assembled) and learned a few things.

    I'm an old "relay guy" and don't particularly care for this object oriented business. But I see with the Propeller I will be able to maintain control of my "objects". And what I do today will still work 5 years from now.

    So I guess i will give it a "spin"?

    (After I do a bit of reading, I'll try the speech thing above.)
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-17 16:29
    Okay, so tried the "Talk" object and it didn't seem to work very well. Maybe i was doing something wrong, i don't know. I am kinda new to the propeller in general. I have some programming experience( i can program in Basic and some C++) and i must say the the propeller is actually easier to program than C++ is. But i still have a few hang-ups when dealing with the prop. I was hoping to find a easy to use speech object, one that you could add it to an existing setup with no hassle. If one of you guys could make a demo like program that would be really cool. That way i could modify it while learning how to use......THANKS for the help.
  • mctriviamctrivia Posts: 3,772
    edited 2010-04-17 16:36
    here is the demo i used. and here is a subroutine to say time related values.

    PUB sayNumber(uiNum)
      case uiNum
        0 : oT.say(string("oa~klok"))
        1 : oT.say(string("wun~"))
        2 : oT.say(string("too"))
        3 : oT.say(string("three"))
        4 : oT.say(string("for"))
        5 : oT.say(string("faev"))
        6 : oT.say(string("siks"))
        7 : oT.say(string("s'even~"))
        8 : oT.say(string("ayt"))
        9 : oT.say(string("naen~"))
        10: oT.say(string("ten~"))
        11: oT.say(string("el'even~"))
        12: oT.say(string("twelv~"))
        13: oT.say(string("th'irteen~"))
        14: oT.say(string("f'orteen~"))
        15: oT.say(string("f'ifteen~"))
        16: oT.say(string("s'iksteen~"))
        17: oT.say(string("s'eventeen~"))
        18: oT.say(string("'aytteen~"))
        19: oT.say(string("n'aenteen~"))
        20: oT.say(string("tw'entee"))
        30: oT.say(string("th'irtee"))
        40: oT.say(string("f'ortee"))
        50: oT.say(string("f'iftee"))
        other:
          sayNumber((uiNum/10)*10)
          sayNumber(uiNum//10)
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Lots of propeller based products in stock at affordable prices.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-17 16:52
    Thanks, mctrivia. That helped a lot. The actual quality is really bad. you can't even hear some of the things that it is saying. It needs to be more clear. But it works so that is good.
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2010-04-17 17:20
    Here is another link that might be helpful. Make sure you check out the Chapter-12 documentation that Chip worked on.

    http://forums.parallax.com/showthread.php?p=830898

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-04-17 17:56
    I wonder if there is a piece of hardware or some software that can take raw ASCII data and convert it to speech. Something that doesn't need phonemes. I know it would be hard to fit all the data. Or maybe i should try doing the sd card thing, where the sounds are pre-recorded and you just play them of the card. Only thing is that i don't know anything about sd cards or the spi protocol. I wish it was more like i2c, because that protocol is so much easier to use. Mostly, i just need something to play back messages, something simple, but that works well. I guess i don't really care how it is done(Pre-recorded or synthesized). I know the propeller can be interface to sd cards and i think you can play raw sound off of them. If you guys know about sd cards and how to use them with the prop, please share.
  • mctriviamctrivia Posts: 3,772
    edited 2010-04-17 18:04
    i now use http://obex.parallax.com/objects/324/ with pre recorded time messages.

    http://propmodule.com/catalog/product_info.php?cPath=58&products_id=48
    has a micro sd card slot built in which will work with above code with no changes. just need to hook up the sound circuit.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Lots of propeller based products in stock at affordable prices.
Sign In or Register to comment.