Help with speech feature

omriar

New Member
Joined
May 22, 2018
Messages
5
Hi, i'm trying to use SpeakAsync with supertalk.
I saw on wellsr website that you can change excel's speech parameters, the voice, the volume and the speed with "supertalk":
-------------------------------------------------------------------------------------------------------------------------------------------
Sub ChangeVoiceDemo()
SuperTalk "Excel is talking to me.", "BOY", 2, 100
SuperTalk "Excel is talking to me.", "GIRL", 2, 100
SuperTalk "Excel is talking to me.", "BOY", -10, 30
SuperTalk "Excel is talking to me.", "GIRL", 10, 70
End Sub

Private Sub SuperTalk(Words As String, Person As String, Rate As Long, Volume As Long)
Dim Voc As SpeechLib.SpVoice
Set Voc = New SpVoice

With Voc
If UCase(Person) = "BOY" Then
Set .Voice = .GetVoices.Item(0)
ElseIf UCase(Person) = "GIRL" Then
Set .Voice = .GetVoices.Item(1)
End If
.Rate = Rate
.Volume = Volume
.Speak Words
End With
End Sub
-------------------------------------------------------------------------------------------------------------------------------------------
also I saw that you can use "SpeakAsync" to continue the code while the excle is speaking
-------------------------------------------------------------------------------------------------------------------------------------------
Sub TalkToMe3()
Application.Speech.Speak "Excel is talking to me", SpeakAsync:=True
MsgBox "test"
End Sub
-------------------------------------------------------------------------------------------------------------------------------------------
But I can't find a way to do the simultaneously.
It will be much appreciated if someone could help with this.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Why do you need to change the voices? It seems that it would be easiest to do

VBA Code:
Application.Speech.Speak "My String", SpeakAsync:=True
 
Upvote 0
Why do you need to change the voices? It seems that it would be easiest to do

VBA Code:
Application.Speech.Speak "My String", SpeakAsync:=True
Why do you need to change the voices? It seems that it would be easiest to do

VBA Code:
Application.Speech.Speak "My String", SpeakAsync:=True

I need to change the speed and volume in code also I want to use the British voice
 
Upvote 0
Okay, why not just change the default values for those parameters?
 
Upvote 0
What Operating System do you use?
 
Upvote 0
For Windows 10, Go to Speech Settings and then you can change the default settings from there.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top