Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2017, 12:13 AM
Quintuplet4 Quintuplet4 is offline Executing SAPI.cpl Windows 10 Executing SAPI.cpl Office 2016
Novice
Executing SAPI.cpl
 
Join Date: Apr 2017
Posts: 2
Quintuplet4 is on a distinguished road
Default

Hello,

I was able to manage the voice in an MS word document using Set speech.Voice = speech.GetVoices.Item(6)
but i have a problem in applying a 3rd party voice, specifically Julie voice to my word document.

I put Julie 's voice under Tokens in the registry but it had an not been called in my code. Julie Voice has different attributes and characteristics. so I guess, I should call the voice from the .dll that I got from the 3rd party application (VW) after I got it installed.

I have used a software to see the modules that are inside the .dll library, but I have no skills to call the modules within the .dll library.

How can I Execute Windows\sysWOW64\speech\SpeechUX\SAPI.cpl using a VBA code?
Can I change the default voice using a VBA code?

thank you,



Ali
Reply With Quote
  #2  
Old 04-30-2017, 01:00 AM
macropod's Avatar
macropod macropod is online now Executing SAPI.cpl Windows 7 64bit Executing SAPI.cpl Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See:
https://msdn.microsoft.com/en-us/lib...=vs.85%29.aspx
https://www.codeproject.com/articles...ms-sapi-to-use
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-30-2017, 01:04 PM
Quintuplet4 Quintuplet4 is offline Executing SAPI.cpl Windows 10 Executing SAPI.cpl Office 2016
Novice
Executing SAPI.cpl
 
Join Date: Apr 2017
Posts: 2
Quintuplet4 is on a distinguished road
Default

Hello macropod,

Thank you for your answer; it will take me a couple of weeks to see the links you provided. and I will keep you posted.
However, here is what came new to me since my initial post:
I can easily set up the Microsoft voices that are provided in tokens.
Why do not the token accept voices from a third party? I guess as the third party would have a different attributes and strings and their value as well.

when i open the Microsoft speech, the third party voice appears i the "speech properties" window; but, even in that window i could not manually set up Julie voice as a default voice.

by they way, I am not a professional in VBA. But I am just trying to help some students (non-native English speakers) to help then listen to correct English in Canada/ Toronto.

Thank you.
Reply With Quote
  #4  
Old 04-30-2017, 03:47 PM
macropod's Avatar
macropod macropod is online now Executing SAPI.cpl Windows 7 64bit Executing SAPI.cpl Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,340
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Quintuplet4 View Post
I can easily set up the Microsoft voices that are provided in tokens.
Why do not the token accept voices from a third party? I guess as the third party would have a different attributes and strings and their value as well.
That really depends on whether the third party has implemented their voices in a way that's compatible with Microsoft's implementation and, hence, can be retrieved in the same way. Even then, the voices available are language-specific, and even the Windows defaults are limited - although my PC is fully-configured for Australia, the only options I get via:
Control Panel>Ease of Access>Ease of Access Center>Use the computer without a display>Text to speech
are Microsoft David Desktop and Microsoft Zira Desktop, both of which have US accents, even though the narrator itself lists numerous other options. The Microsoft James Mobile option, which supposedly has an Australian accent, sounds like no native-born Australian I've ever heard - it's actually more like a British accent.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
call .cpl, default voice



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing a userform with a command button spc94 Word VBA 2 06-24-2015 10:08 PM
Executing SAPI.cpl Shift Excel Cell after executing a macro for second time LearningMacro Excel Programming 2 01-08-2015 03:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft