CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Join Date
    Sep 2007
    Posts
    405

    I want to find command may be pronounce sound rang of the telephone

    In VB6.0. I want to find command may be pronounce sound rang of the telephone, sound knock at the door,...

  2. #2
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    Don't understand what you want. What do you mean by pronounce here?
    If you want to play a sound, there is the PlaySound command which allows to play back a sound file of type .wav, which might contain prerecorded sounds.

  3. #3
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: I want to find command may be pronounce sound rang of the telephone

    There is also a speech engine that can be used in VB6 that will pronounce the given text. It has been a long time since I have looked at it but I remember that I downloaded the sdk and engine from microsofts site. There were some samples included if memory serves.

  4. #4
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    Yes, but how would it pronounce the sound of knocking at the door?
    And would it pronounce the phone ringing as "r-i-n-g" or as "drrrrr"?
    (Only joking)

  5. #5
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: I want to find command may be pronounce sound rang of the telephone

    S-o-u-n-d o-f k-n-o-c-k a-t d-o-o-r

    My guess would be that it was just a bad choice of words ont he part of the op and what he/she really wants is to play a wav file or similar but to pronounce means to vocalize as in text to speech so I thought I would throw it out there. Someone may find it useful.

  6. #6
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    So just let's see, what the OP has got to say to these our valuable assumptions.

  7. #7
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: I want to find command may be pronounce sound rang of the telephone

    Have a look at this

    You will find all the sounds you may want to play if you google "Sound Files" or WAV files or similar
    Attached Files Attached Files

  8. #8
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    It says there is a module Sound.bas missing when loading, but your sample works well.
    But George... a Senior Memeber and not using OPTION EXPLICIT?? Ts, ts, ts.

  9. #9
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,900

    Re: I want to find command may be pronounce sound rang of the telephone

    Sorry Wof - its just something out a 100 samples I found in my collection - I didn't even look at the code -I tried it - it worked -

  10. #10
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    Ok. So you are forgiven.

  11. #11
    Join Date
    Apr 2009
    Posts
    394

    Re: I want to find command may be pronounce sound rang of the telephone

    Don't feel bad guys... I've been trying to answer this over at vbforums for a couple of days now.

  12. #12
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I want to find command may be pronounce sound rang of the telephone

    We don't feel bad. Just having some fun, guessing.

  13. #13
    Join Date
    Sep 2007
    Posts
    405

    Re: I want to find command may be pronounce sound rang of the telephone

    I want to find command may be create sound rang of the telephone, but it's not use play file *.wav.

  14. #14
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: I want to find command may be pronounce sound rang of the telephone

    If you don't want to use .wav files, then what do you think you COULD use? Something has to send a SOUND file to the SPEAKERS so that you hear something.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  15. #15
    Join Date
    Apr 2009
    Posts
    394

    Re: I want to find command may be pronounce sound rang of the telephone

    Agreed D. and dongtrien, did you follow the link to the example in the codebank section over at vbforums that I gave you. It shows you how to use the API Beep to make and play various sounds including songs or what you want but as I said there, you will have to figure it out for yourself.

    Good Luck

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured