Thread: voice echo

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    8

    voice echo

    I was trying to write a program that waits for 10 seconds for voice input from the mic ,and then echoes it back.
    The problem is that when playing back the recorded data , it is played so slowly that it is impossible to recognize...
    I know that the recording part is OK , because when trying to playback without any buffering scheme using some code I found on the net the playback worked just fine , so probably it's me doing something wrong.

    I attached three files :
    sound.h which includes mostly structs for the SoundOut.c file.
    SoundOut.c which deals with the play back.
    main.c includes most of the recording code and uses SoundOut.c to playback.
    note that the second option for playback [without any buffering scheme] is commented , and when I use it everything works just fine.

    please reply even if you only got an idea about what can be wrong , because I'm out of ideas.

    realcr.

    PS (EDIT) - If anyone have ever seen a working example that does something related to what I'm trying to do please point me to that example if you can. It is really difficult to find any example of C sound API on the net.
    Last edited by realcr; 04-18-2006 at 04:31 PM. Reason: addition

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  2. A breakthrough
    By loopy in forum Linux Programming
    Replies: 4
    Last Post: 11-26-2003, 06:46 PM
  3. C-Shell Scripting.. Help!
    By denizengt in forum Tech Board
    Replies: 3
    Last Post: 10-29-2003, 01:37 PM
  4. voice technologies
    By Dissata in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 01-04-2002, 04:22 AM
  5. echo command
    By Billing in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 08-31-2001, 08:38 PM