Author Topic: Solicitações  (Read 49491 times)

0 Members and 3 Guests are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #45 on: December 10, 2010, 08:57:46 PM »
you changed the phrase

from : play, tocar
to :    play music by, tocar

why did you do that?

Now it will only work if you to say:

"play music by music by <artist name>..."

crazy? :)

The way you have it, it should work if you say  "tocar musica por <artist name>"

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #46 on: December 10, 2010, 09:31:15 PM »
só agora caiu a ficha...essa pisei feio...sorry man...só agora compreendi corretamente como funciona, hehe
Total Crazy..sorry ;D

Uma coisa a mais para ficar perfeito:

Como posso fazer para que quando for acionado  a resposta via voz do Felipe, receber a frase dele  em  Português: Agora tocando {Nome do Artista} (frase em PT BR}
já que o Dave, obviamene já dispara a frase correta em inglês, playing now + artist name.

Por fim, maravilha como funcionou bem...testado e aprovado, great power this VC software.

« Last Edit: December 10, 2010, 09:46:30 PM by 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: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #47 on: December 10, 2010, 10:30:29 PM »
yes to make him say one of two different things is difficult.  For this, I think, we need features that VC does not have yet.  Some kind of conditional logic, like an "if, then, else statement".

For now, the best thing would be to use something that works for both languages.

so maybe just say the artist name with no other words.

TTS.speak  {1}

or maybe

TTS.Speak Artist, {1}
would work ok for both...

The only other option I can think of is to have two separate commands.  It would load slower and take more memory, but it would work.

The ideal would be to have two separate lists of artistXML, one for english and one for spanish!

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #48 on: December 11, 2010, 08:30:12 AM »
Thanks James,

Obrigado pela explicação..

e boa viagem

Wanilton
« Last Edit: December 12, 2010, 05:33:13 AM by 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

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #49 on: December 21, 2010, 07:22:55 AM »
James,

Bom dia,

Me mande um exemplo de como é enviado as informações OSD pelo vox, quero algo parecido com o que usamos para comandos alternativos,
na skin.
Melhoramos a apresentação dos comandos altenativos na skin, segue o arquivo.

Wanilton
« Last Edit: December 21, 2010, 08:31:50 AM by 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: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #50 on: December 21, 2010, 10:13:12 PM »
http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=execbuiltin(Notification(Alternate%20Commands,Line%201[CR]Line2[CR]Line3...[CR]Line4 blah blah blah this is line 4 right?[CR]Line5.......[CR]Line6.....[CR]Line7....[CR]Line8.......))

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #51 on: February 19, 2011, 06:37:34 AM »
Ola James,

Desafio, eu tentei sem sucesso usar Evento, creio que não compreendi bem como fazer.

O Que quero?
Ao iniciar uma música, disparar um comando TTS que informe automaticamente o nome da música que ouvirei,
isso sempre que trocar ou iniciar nova música, então criei esse comando, mas não obtive sucesso.

Isso é importante, pois quero começar a usar mais o recurso de Eventos, creio que algum tutorial, ou mesmo
exemplos de uso serão ótimos para o aprendizado.

Obrigado.
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: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #52 on: February 19, 2011, 09:26:23 AM »
I am waiting until I have finished a few more things and uploaded the official version.  Then I will create some video tutorials and try to do some work on the wiki.

It is actually much more simple than what you are trying to do.  First of all, the event is being triggered by XBMC, so you do not need to call VC.TriggerEvent.  Most people will never need to call VC.TriggerEvent

The name of the event should match what is showing up in the command history.  So where you have put "nome da musica auto" you should be putting "XBMC.MediaChanged.AudioTitle"

The event that is being triggered by XBMC already has the payloads built into it.  So you don't need to call "xbmc.send getcurrentlyplaying" or use "results.regex".

In the case of the [XBMC.MediaChanged.AudioTitle] event, payload {1} is the Song Title and payload {2} is the Artist Name.

Unfortunately I don't think there is a way to know what language the song is in.

I have updated your xml and attached.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #53 on: February 19, 2011, 09:30:03 AM »
Understand, thank you again, very easy.
« Last Edit: February 19, 2011, 09:33:56 AM by 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

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #54 on: February 19, 2011, 09:44:04 AM »
this repeat 2x the same content, why?

Esta musica se chama Love
Esta musica se chama Love

interessante que ele nao esta randomiizando a resposta aqui...e repete a cada música 2 vezes com o mesmo conteúdo sendo dito..
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: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #55 on: February 19, 2011, 09:47:44 AM »
I don't know, it does not do it for me.  You would have to send me your whole voicecommands.xml so I can see what you have done.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #56 on: February 19, 2011, 09:53:20 AM »
here you go, se possível uma pausa para ouvir a resposta, ou diminuir o volume da música.
« Last Edit: February 19, 2011, 09:59:31 AM by 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

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #57 on: February 19, 2011, 10:37:00 AM »
One first music it´s ok, if I play next music, repeat 2x..
if I let the player play through the end of the first song to start the second is also correct, the error occurs only 2x to submit to move to the next track without waiting for the end of the first song.
« Last Edit: February 19, 2011, 11:13:07 AM by 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: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #58 on: February 19, 2011, 11:15:57 AM »
I tried your configuration, it only says the song name once.  If I use | the randomly selects a response as it should.

Please look in the VC history window to see if XBMC is sending the event 2 times.  I can't think of another explanation.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #59 on: February 19, 2011, 11:23:01 AM »
James,

Yes in history appears 2 times same event, but look, in normal situation it´s ok now, but test forward for next track by keyboard...
if I let the player play through the end of the first song to start the second is also correct, the error occurs only 2x to submit to move to the next track without waiting for the end of the first song.

If I use the voice command, play next, it is also ok, apparently it happens when I press Forward in keyboard.

« Last Edit: February 19, 2011, 11:35:24 AM by 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