Text To Speech Service.The Text To Speech sample service shows you how to write a service that interacts with.NETs System. Speech API.This sample is provided in the C language.You can find the project files for this sample at the following location under the Microsoft Robotics Developer Studio installation folder Sample location.Bacon_%28nkrs200%29.png/revision/latest/scale-to-width-down/278?cb=20140224165322&path-prefix=mssam' alt='How To Get Microsoft Anna On Speakonia Voices Downloads' title='How To Get Microsoft Anna On Speakonia Voices Downloads' />How To Get Microsoft Anna On Speakonia Voices FreeenspenspAdd TTS Voice To Windows 7 and Set AS.Microsoft has Voices other than Anna in their telecommunications package and these.If you get this. SamplesTechnologiesSpeechText.To. Speech. Contents Prerequisites.Hardware. To run this sample you will need speakers or another type of audio output device, such as a headset, attached to a sound card in your computer.Software. This software requires.NET version 3. 0 or higher.Note that this supsedes the older SAPI software.You will also need Microsoft Internet Explorer or another conventional web browser.Background. The Text to Speech service is designed to provide your applications with a verbal interface.It can be used in conjunction with the Speech Recognizer service for two way communication with the computer.Running the Sample.Perform the following steps to begin the Text to Speech sample Choose the Start then All Programs then Microsoft Robotics Developer Studio Run DSS node menu command.When the web browser appears, under System Services at the left hand side of the window choose Control Panel.Find the Text to Speech service and click the Create button.The service appears in the Service Directory once it loads and begins running.Inspecting the Service.To inspect the service, type the following Uniform Resource Identifier URI in the browsers address bar Nonehttp localhost 5.This displays the Text.To. Speech page. It will show you the state of the speech object which includes the last text spoken, as well as various other speech parameters.You can make changes using the web page, and also test out the Text.To. Speech service by entering some text and pressing the Say button.You can also perform text to speech by entering this URI into the web browser Nonehttp localhost 5.SayHelloworld. Note that the plus sign as part of the query string in a URL represents a space.You can change the speech parameters by using the following URI Nonehttp localhost 5.Volume5. 0You can perform more than one operation by combining parameters, as in the following sample URI Nonehttp localhost 5.Volume5. 0 SayHello.Operations. The available operations for the Text.To. Speech service include the following Say.Text Says the specified text.Say. Text. Synch Says the specified text but does not send a response until the speaking has finished.If you are using the service from VPL you might find this operation useful because program execution can be suspended until the response is recieved from the Text.To. Speech service.Set. Rate Sets the speed at which text is spoken.Set. Volume Sets the sound volume.Set. Voice Selects a particular voice Notifications.The Text. To. Speech service allows other services to subscribe to it.Subscribers will be notified of state updates as well as of viseme states as speech is synthesized.Whereas phonemes are the basic acoustic unit of speech, visemes are the basic visual unit of speech.Thus, a viseme describes a particular facial and oral expression that occurs alongside the voicing of phonemes.The Viseme. Notify messages can be used to assist with displaying a facial representation during speech.The service does not provide a simulated face, so you will have to write your own code for this.Additional Information.Speech Parameters.As with most services, the speech parameters can be set in a configuration file.Alternatively, the speech parameters can be modified through messages.The parameters include Volume.Changes the volume of the voice.Valid range is 0 through 1.Rate. Changes the speed at which the text is read.Valid range is from 1.Voice. Changes the speakers voice.Possible voices may include.Microsoft Anna. Microsoft Mary.Microsoft Mike. Sample TTS Voice Short names may be used.For example, Mike may be used to select Microsoft Mike.Note that you might only have one of these voices on your system.These, as well as other speech parameters such as pitch and emphasis, can be modified through XML markup of the text to be spoken.To use XML markup, the first characters of the text should be lt XML.Here are some sample parameters XMLlt XML This is the normal voice.VOICE REQUIREDNAMEMicrosoft Mike This is the Microsoft Mike voice.VOICE lt XML. XML lt RATE SPEED 5 This is slow speech.RATE lt XML. XML lt PITCH MIDDLE5 This is high pitched speech.PITCH lt XML. XML This is a pause.SILENCE MSEC 5. XML.XML lt VOLUME LEVEL5.This is quite speech.VOLUME lt XML. XML lt EMPH Thislt EMPH is an emphasis.XML Output. In addition to the notifications, Text To Speech makes calls to Log.Info and Log. Error.By default, these methods send output to the Debug output and may be viewed using the appropriate development tools.This sample covered the following.Add TTS Voice To Windows 7 and Set AS Default.By trying the method outlined above, I was able to change the default voice.Until I went back to the Control Panel Speech Recognition applet afterwards.All I saw there was the same Microsoft Anna default voice, which to me was no good, so I did some.While looking for Microsoft Mike within the registry not visible in the standard TTS config window, but visible in the Wo.W6. 4 version, I found an entry in this branch of the registry HKEYLOCALMACHINESOFTWAREWow.NodeMicrosoftSpeechVoicesTokens.While the entry for Microsoft Anna was in a completely different branch HKEYLOCALMACHINESOFTWAREMicrosoftSpeechVoicesTokens.Now, Im probably braver read stupider than many folks, and I am NOT.Heres what I did right after the usual warnings about mucking about in the registry WARNING The registry contains essential configuration values that can adversely effect the operation of your computer, if not handled correctly, and with care.If you make the wrong changes in the registry, you can potentially do.IRREPARABLE damage to your computer, requiring a wipereinstall of your operating system, and potential loss of important documents or files.If youre not. 1. You HAVE been warned.Open the TTS config applet, as described above windirSys.WOW6. 4speechSpeech.UXsapi. cpl, and select a voice from the list other than Microsoft Anna.Note the name e. Microsoft Mike, or one of any 3rd party voices you may have installed.Open regedit see warning, above and search for the voices name e.Microsoft Mike, or whatever.Your first found location for that string value SHOULD be at the branch I mentioned, above.If not, keep searching.Once found in the correct branch, right click on the Tokens folder, just above your current location, in the nav panel, and click Export.Save the file in a convenient location.Open that newly created.Explorer, right clicking on the file, and selecting Edit.Did you close Regedit yet No Good.Now follow the same steps above, this time looking for Microsoft Anna.The correct branch that you want will be very similar or identical to the second registry branch I mentioned, above.Again, export. the Tokens folder to a convenient place, and edit this one, as well.In this file, the first line of registry entry information should look like this HKEYLOCALMACHINESOFTWAREMicrosoftSpeechVoicesTokens6.Select everything except the square brackets, but dont copy it yet.Switch to the other file, and highlight that same first entry line EXCEPT for the square brackets.Hit CTRL C, CTRL H, CTRL V Copy, Replace, Paste, then switch back to the other file, make sure the necessary text is still selected, then copy that.Then back to the first file again, paste the new line into the replace textbox, and click Replace All.Save the file. 8.In explorer, select the file you just changed, and merge it back into the registry.This will Add all of the voices that were on the Wo.W6. 4 version of the TTS config applet to the regular config applet.Please note that you MAY.If you get this warning, removing the information about Microsoft Anna should fix the issue quite nicely. Ip Hider Free Ip Hide Freeware . Safe, Reliable Insanity, Since 1.So I know its been a couple years, but I was using this as reference to try and add the new Speech Platform v.TTS options. The above DOES work, but the details are slightly off.Technically to get them to work I had to add two sets.The method above got more than just Anna to list in TTS panel that you can access via control panel, but it did NOT add them to the one launched via Sys.WOW6. 4SpeechSpeech.UXsapi. cpl which would cause the computer to go back to Anna any.TTS was used. The solution was to look deeper in the registry.The v. 11 voices are added to the registry at.HKEYLOCALMACHINESOFTWAREMicrosoftSpeech Serverv.Voices AND HKEYLOCALMACHINESOFTWAREWow.NodeMicrosoftSpeech Serverv.Voices. Said tree contained the proper token entries for each voice.Now the fun part 0.Pre requisite Download and Install Speech Platform Runtime Languages from http www.Speech Platform v.There are many voices.US Zira. Pro and en GB Hazel are both good English options.Once you have selected voices, installed the Platform and voices proceed to making them work 1.Under HKEYLOCALMACHINESOFTWAREMicrosoftSpeech Serverv.Voices Click the Tokens folder and export.Save this file to your desktop as voices.Under HKEYLOCALMACHINESOFTWAREWow.NodeMicrosoftSpeech Serverv.Voices. select Tokens and again export it, again to the desktop.Call it voices. 2.EDIT right click, select edit voices.In notepad use the Replace function and replace.Speech Serverv. 11.Speech Just replace that section, the rest will remain intact and entries with around them should read as such.HKEYLOCALMACHINESOFTWAREMicrosoftSpeechVoices some entries WILL be nested in folders below this.The key is making sure that the patch is Speech and not Speech Serverv.Save and close. 4.EDIT right click, select edit voices.In notepad use the Replace function and replace.Speech Serverv. 11.Speech Just replace that section, the rest will remain intact and entries with around them should read as such.HKEYLOCALMACHINESOFTWAREWow.NodeMicrosoftSpeechVoices some entries WILL be nested in folders below this.The key is making sure that the patch is Speech and not Speech Serverv.Save and close. 5.Merge both of the files we just edited into the registry by double clicking them and answering yes when prompted.Reboot computer and enjoy its new voices.Tested this on my laptop as well, slightly easier since its x.Wow. 64. 32. Node only exists on x.DISCLAIMER This method works with the MS Speech Platform Server v.The method is likely similar for adding purchased and third party voices as well, but locating the voice tokens that you need to copy into the MS default.This worked for me Sort of.New problem, though.Attempting to use WSR Macros to respond using TTS wont work.For example lt UTF 1.Macros lt command lt listen.For Hello computer lt listen.For lt speak hello user lt speak lt command This looks to me as though theres some sort of command structure missing from Hazel the Server TTS voice I downloaded.Can anyone offer me any pointersEDIT Also applies to any other downloadable voice I try.Anna still works when swapped back to.Hazel doesnt Cepstrals Millie and Damien also fail.All can narrate quite happily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |