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

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #60 on: February 19, 2011, 12:07:26 PM »
It doesn't happen to me.  There is something funny with your XBMC.  There is nothing I can do about it if it is going to send the same event twice.  Try a reboot?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #61 on: February 19, 2011, 12:10:15 PM »
by the way,

I tried going to the next songs using:

- voice command
- keyboard (presseing . key)
- remote control (eventGhost)
- mouse clicking on the next song in the playlist

in every case I only get one event.   I tried this on two computers.  One is x86 and one is x64

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #62 on: February 19, 2011, 12:33:43 PM »
Okay, if I advance to the next track over and over again, *sometimes* it will issue the event 2 times.  This is obviously a bug in XBMC.  I don't know if it is possible to get it fixed.

Luckily VoxCommando is all powerful and there is a solution.

Don't use TTS.speaksync.  There is no need for it to wait anyway.  Use TTS.speak

but, right in front of it put the command TTS.Stop

Like this:

TTS.Stop
TTS.speak  now playing the song {1}, performed by  {2} | this is {1} by {2} | You are now listening to {2}, playing the song {1}


this way even if it gets triggered twice, the 2nd one will interrupt the first one erasing it immediately.  COOL  8)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #63 on: February 19, 2011, 12:35:55 PM »
Here's the updated command using TTS.stop

and also the command and event for Cinema Experience.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #64 on: February 19, 2011, 02:14:46 PM »
wonderful, thanks a lot, you are Genius ???  :P

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 #65 on: February 21, 2011, 07:14:31 AM »
James,

Hello, look i am have troubles in this version 0.874 with command TTS.SpeakSync, if the player is running movie ou audio,
only stop the player for command continue your execution.

PT BR

Fiz testes com vários usos, e algo mudou no comando TTS.Speaksinc, se estou vendo um filme ou ouvindo músiva, e solicito
algum comando que use o TTS.Speaksinc só funciona se eu parar o que estou vendo ou ouvindo, é como se ele entrasse
em pausa aguardando o parem então assim que eu paro o player, o comando continua a execução normalmente...ou é
bug novo, ou algo aconteceu na configuração de meus equipamentos.

Só para constar o TTS.Speak it´s ok for me...

grato

Wanilton
« Last Edit: February 21, 2011, 09:22:21 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 #66 on: February 21, 2011, 09:12:23 AM »
I imported your command and it seems to work perfectly.  I don't understand what the problem is.  Maybe you need to make a video...

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #67 on: February 21, 2011, 11:21:19 AM »
Ok, erro de configuração do receiver...it´s ok now..thanks.. :bonk
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 #68 on: February 21, 2011, 05:30:23 PM »
James,

Estou querendo um comando para solicitar a troca da música pela número da faixa (track number) no playlist no XBMC, deve ser simples,
mas estou sem inspiração, e não consegui.

Solicito um album, recebo uma lista das faixas, quero poder pular para a faixa 4, dizendo por exemplo Ouvir a música número 5, ou mesmo pedir pelo nome da música
listada no playlist...

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 #69 on: February 21, 2011, 06:18:51 PM »
Why so lazy?

xbmc.send  SetPlaylistSong({1})

The only problem is that the first song starts at 0.  So you probably want a macro with two actions:

xbmc.send  SetPlaylistSong({1})
xbmc.send  PlayListPrev

this won't work with the home menu showing "next songs" because that is showing upcoming songs.
To do that you would do playlistNext with a repeat of {1}

by the way the command to toggle the new mini music menu is:

XBMC.Btn.KB    m

the XBMC.Btn.KB work really well so you can probably replace a lot of your send actions or keyboard emulation with these keyboard actions.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #70 on: February 21, 2011, 08:10:22 PM »
Thanks James..lazy me  ??? yes, today only...thanks for tip keyboard actions.
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 #71 on: February 21, 2011, 09:10:46 PM »
Ha, no problem.  Your post where you asked for help, after translating to english was " it should be simple, but I am uninspired and could not."

I interpreted that as "lazy".  I am lazy most of the time so I did not intent it as an insult!   ;)

...But you probably meant something different.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #72 on: March 02, 2011, 05:35:47 PM »
Ola James,

Boa tarde,

Tenho tentado acertar o comando para ouvir a música no playlist do XBMC, fazendo o  pedido pelo número da música, mas sem sucesso, creio que o comando
que construi não esteja correto, se possível, veja o que podes fazer neste caso, é uma forma prática de chamar uma música numa lista de execução, muito grato,

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 #73 on: March 02, 2011, 05:51:44 PM »
You don't have a payload.  So {1} has no meaning.

After your phrase "track number, play music number" you need to add a Payload Range.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #74 on: March 27, 2011, 07:08:38 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!

Hello James,
Eu penso que agora eu posso criar uma solução para isso, minha ideia é criar um campo adicional na tag pra identificar o idioma da música, e daí eu  
poderei selecionar com um comando if o TTS apropriado, você entende que isso é viável agora com a nova versão 0.882?

grato

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