Menu

16F628A and the human voice

Help
2012-12-04
2013-05-30
  • alejandro1957

    alejandro1957 - 2012-12-04

    I would like to create an algorithm for 16F628A to make them easier to pronounce vowels and consonants using the TONE control.
    the program a pic to me is pretty easy, but they are not capable of handling frequencies and sounds.
    I tried with this code, but it's rubbish.

    #CHIP 16F628a,4
    #CONFIG INTOSC_OSC_NOCLKOUT,MCLR_OFF,WDT_OFF,PWRTE_ON,CP_OFF,LVP_OFF,BOREN_OFF,DATA_CP_OFF

    #DEFINE SoundOut PORTB.4

    'A 4800
    'B 3000
    'C 5000
    'D 2500
    'E 3333
    'F 1400
    'G 4108
    'H 2000
    'I 5300
    'L 5666
    'M 3500
    'N 4565
    'O 4000
    'P 3800
    'Q 2999
    'R 5446
    'S 1000
    'T 8500
    'U 1500
    'V 4486
    'Z 500

    INICIO:
       TRISA=b'00000000'
       TRISB=b'00000000'
       PORTA=b'00000000'
       PORTB=b'00000000'
       INTCON=b'00000000'
       VRCON=b'00000000'
       CCP1CON=b'00000000'
       VRCON=b'00000000'
       CMCON=b'00000111'
       DO
         SET PORTB.5 ON
         TONE 5000,10
         TONE 5300,10
         TONE 4800,10
         TONE 4000,10
         SET PORTB.5 OFF
         WAIT 1 s
       LOOP

     
  • mmotte

    mmotte - 2012-12-05

    I have been playing with  speech for years. There is not simple solution. had the Cmmodore 64 talking and the sinclair.

    Early 2000's winbond had the best solution in the wts701 text to speech chip. send it serial text and it spoke. I used a few and they were pretty good. Few years ago they obsoleted them.

    Now I see EMIC trhough Parallax is using the epson chip but i have not tried them. same Idea: send serial /hear speech

    also there is    www.rcsys.com/  RC systems but they are pricey.

    Some guy on the web did a PIC chip player using two pins and a resistor/capacitor simulated D/A. He would convert the file to a two bit sound file and then play the sound files.  You can play one file after another and say values like for a clock or analog signal or just to say 'hello'.

    So down the same line you could use a MP3 player to play sound files with words on. Look up  wtv020 chip on ebay or sparkfun. i ordered some from china but have not put them to use yet. They have  the sound chip and a microSD slot on the same little 1" sq board.  This chip has clock/data interface and can read  511 unique files.

    One other way is using Winbond's  ISD chips.   But the hard part is getting the sounds onto the ISD-17xx.  They are Microprocessor controllable.

    Good luck,
    If I get the wtv020 running i will share the code on the forum.

    mmotte

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.