Author Topic: Pandora bot  (Read 21241 times)

0 Members and 2 Guests are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #30 on: October 07, 2011, 10:57:10 PM »
I just found this:
Quote
Microsoft Agent now supports SAPI 5 Text-to-Speech and Speech Recognition components. The TTSModeID and SRModeID properties of the Agent object are still used to determine which voice or recognizer is selected for the agent and to alter this selection. SAPI 4 modes appear as GUID strings such as "{ca141fd0-ac7f-11d1-97a3-006008273000}", while SAPI 5 tokens (equivalent to modes) appear as regular names, such as "Microsoft Anna". As in earlier releases, the agent will make a default choice of TTS and SR engines. If SAPI 5 engines are installed then these will always be preferred over any SAPI 4 engines that may be installed. The user's default Text-to-Speech engine, as specified in the control panel, is used if its gender matches that of the character, otherwise a SAPI 5 engine of the same gender is chosen if one is available. Mode ids specified directly on the character are ignored if SAPI 5 engines are present. The default selections can be verified by reading the TTSModeID and SRModeID properties at the beginning of your script.
so, as long as I set a male voice it uses the one I want, because I am testing with a male agent.  If I choose a female voice then it defaults to Bernard, which of course is just about the stupidest thing it could do.  Choose the only non-english voice I have installed, rather than let Merlin go falsetto!  Crikey!

So now yo know. Select the default TTS voice you want but make sure it matches the gender of your msAgent or it will pick by itself, and odds are, it will pick the worst one.  This selection is done in the winows TTS control panel btw.  Click the windows start button and type "text to speech", you should see the control panel at the top of the search list.

Cygnus69

  • $upporter
  • Jr. Member
  • *****
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Pandora bot
« Reply #31 on: October 08, 2011, 02:40:28 PM »
James. I understand the whole default TTS should work. The problem falls in the use of a 64bit system with 32bit voices. Since the voice I am using is 32 bit and the default is always 64bit and registers like a male voice it comes back as Anna or a really high pitch female I assume to be the characters default. All problems root back to 64 bit.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #32 on: October 08, 2011, 03:49:59 PM »
I think you can just run this:

C:\Windows\SysWOW64\Speech\SpeechUX\sapi.cpl

and this will let you select a 32 bit voice as default in 64 bit windows.

Cygnus69

  • $upporter
  • Jr. Member
  • *****
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Pandora bot
« Reply #33 on: October 08, 2011, 09:21:10 PM »
No Joy. Not to mention the PC does not save the settings and must be set up each time it is started. I originally wrote a VBS to open and send keys to change this as well as give a start up message. It worked then so did TTSModeID in a VBS, both are no longer working. I removed an Ivona engine but that was it. I will reinstall Tom and see if that works. if you have any other ideas please let me know.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #34 on: October 09, 2011, 12:21:34 AM »
nope.  sorry.  I'm all out.  Is there anything you can set in the double agent control panel?  is there such a thing?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #35 on: October 09, 2011, 11:08:30 AM »
OK.  I think I might have figured this out, but you'll have to wait for the next version.  I figured out how to set the agent voice, but I've only tested it on a 32 bit system.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #36 on: October 10, 2011, 08:20:25 AM »
one thing you can try.  look in your system registry (click start button, type regedit  >> enter)

go to the key:
Code: [Select]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens
you should see the token names for all your TTS voices that you have installed.  Take note of them.

now go to the key:  
Code: [Select]
HKEY_CURRENT_USER\Software\Microsoft\Speech\Voices
if you look at the data for value DefaultTokenId it should be something like this:

Code: [Select]
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\LQDave
You should be able to edit the end of it to the token name you want to use as default voice.  Try it.

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Pandora bot
« Reply #37 on: October 12, 2011, 01:11:39 PM »
Hello James, I am using plugin MS Agent (double agent), and work great, but i don´t know how i use resource speak for Merlin, I use TTS, and work, but the character don´t change or move when tts read the text, it´s normal, or what?
Any tip??
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #38 on: October 12, 2011, 02:17:43 PM »
instead of using TTS.speak use the following:

MsAgent.Speak

it should use the default voice.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #39 on: October 12, 2011, 02:20:26 PM »
As of version 0.912:

when you first show the agent, you can specify the voice to use as the second parameter.  Use the voice names as they appear in the VC Options window

also with msagent.speak you can use random speech like this:

Hi there | what's up | ola | greetings friend

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Pandora bot
« Reply #40 on: October 12, 2011, 02:47:38 PM »
Hello James, thanks, i follow your tip, TTS Voice default in OS Windows 32 bits is Dave, but I don´t have audio, when execute this action, only text appears, my first use is with launch XBMC
in this case i do:

MsAgent.Show : Merlin
MSAgent.Speak: Wait please, running your mediacenter
Launch: {path.pfx86}\XBMC\XBMC.exe

Well, i have text in buble, but no audio tts, any extra tip

Wanilton
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Pandora bot
« Reply #41 on: October 12, 2011, 06:01:52 PM »
When you show the agent try putting the second parameter in like this:

MsAgent.Show      Merlin      Dave

if that doesn't work try some other voices.  It maybe doesn't like your non-english OS

Wanilton

  • $upporter
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Pandora bot
« Reply #42 on: October 12, 2011, 09:23:22 PM »
Yes, work fine now, thanks...
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Cygnus69

  • $upporter
  • Jr. Member
  • *****
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Pandora bot
« Reply #43 on: October 18, 2011, 03:55:02 PM »
Some of the free MS Agents are nice but try Desktopmates if you want more. Thanks for the update James. Wanilton thanks for asking the question.

berkans

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Pandora bot
« Reply #44 on: October 31, 2011, 07:04:18 PM »
Hi James, I tried to activate MS Agent Merlin, I did actually with the help of double agent, but still Anna, of Microsofts original tts, is talking. How could I get rid of anna?