Results 1 to 16 of 16

Thread: Direct Text-To-Speech - Simultaneous Voices?

Threaded View

  1. #4
    Addicted Member
    Join Date
    Jun 2018
    Posts
    189

    Re: Direct Text-To-Speech - Simultaneous Voices?

    Quote Originally Posted by mcoulter876 View Post
    This doesn't do what I need. This code speaks one after the other. It does not speak the text simultaneously, as is needed.
    Hello,

    How about the following then?

    Code:
    Option Explicit
    
    Private spv1 As SpeechLib.SpVoice
    Private spv2 As SpeechLib.SpVoice
    
    Private Sub Form_Load()
    
        Set spv1 = New SpVoice
        Set spv2 = New SpVoice
        spv2.Priority = SVPOver
        
        Set spv1.Voice = spv1.GetVoices.Item(0)  'male voice
        Set spv2.Voice = spv2.GetVoices.Item(1)  'female voice
    
    End Sub
    
    Private Sub Command1_Click()
        
        spv1.Speak "Hello, First voice goes here. Did you hear the second voice too?", SVSFlagsAsync
        spv2.Speak "Hi, This is second voice", SVSFlagsAsync
    
    End Sub
    Last edited by PGBSoft; Dec 13th, 2018 at 12:57 PM.

Tags for this Thread

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