Results 1 to 16 of 16

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

Threaded View

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

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

    Hello,

    This is a quick answer and just an idea, tested on Win7, it works.
    The key is to using separate speech objects with asynchronous speaking.
    You might enhance the idea for your need, may be with events.

    Code:
    Option Explicit
    
    Private spv1 As SpeechLib.SpVoice
    Private spv2 As SpeechLib.SpVoice
    
    Private Sub Command1_Click()
        
        Set spv1 = New SpVoice
        Set spv1.Voice = spv1.GetVoices.Item(0) 'set your first voice
        spv1.Speak "Hello, Did you hear the second voice too?", SVSFlagsAsync
        
        
        Set spv2 = New SpVoice
        Set spv2.Voice = spv2.GetVoices.Item(0) 'set your second voice
        spv2.Speak "Hi, This is the second voice", SVSFlagsAsync
        
    End Sub
    Last edited by PGBSoft; Dec 12th, 2018 at 01:00 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