Results 1 to 4 of 4

Thread: Leaving a voice message !

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    Question

    Leaving a voice message !

    How to dial a number and when answered, leave a voice message and hang up.

    Conditions:

    1-The message is a wave sound
    2-Voice modem


    PLZ HELP!!
    Thanks a lot!!
    B.S Computer Science
    M.S Computer Engineering

  2. #2
    Guest
    you can download socketwrench at http://www.catalyst.com its a freeware OCX. look for socketwrench. socket tools is the one that you buy.
    socketwrench comes with a dialer, I dont think i can help you with the code, I am not much into dialing the phone, and using wav's in VB..

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    this will play the voice message..

    ..have never tried the 1st part of your question
    but this is the second.
    'Play A sound
    'Paste this code into a bas module
    '
    'API Function to play the sound
    '
    Declare Function sndPlaySound Lib "winmm" Alias _
    "sndPlaySoundA" (ByVal lpszSoundName As String, _
    ByVal uFlags As Long) As Long
    '
    ' play synchronously (default)
    Public Const SND_SYNC = &H0
    ' play asynchronously
    Public Const SND_ASYNC = &H1
    ' loop the sound until next
    Public Const SND_LOOP = &H8

    '=====================================================

    'Paste this code into the main
    'from your main program (button or load or whatever):
    'call the function using your wave file & location..replace "A:\whoosh.wav"
    '
    Call sndPlaySound(ByVal "a:\whoosh.wav", SND_ASYNC)


    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Fanatic Member coox's Avatar
    Join Date
    Oct 1999
    Posts
    550
    Yo Joe, just thought I'd point out that, whilst your bit of code there does indeed play sound (and it's a nice bit of code, doesn't need any silly components or anything) it only plays it through the soundcard, and not, as Mimo requested, through the modem. So whadya say to that then? :-)

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