VoxCommando
PT-BR Support => XBMC => Topic started by: Wanilton on September 20, 2010, 04:24:37 PM
-
James,
Testei a versão nova 0.82:
get now playing info from XBMC
Recebi de retorno os dados na tela *OSD
mas o campo duração da faixa da música não trouxe informação relevante,
como configuro para usar TTS nesse caso, algo que fosse similar ao que existe no mediamonkey
Qual artista, Qual música, qual álbum??.
grato,
Wanilton
-
if you use your webbrowser and enter this address:
http://127.0.0.1:8080/xbmcCmds/xbmcHttp?command=getcurrentlyplaying
you will see something like this back from xbmc
Filename:musicdb://2/563/672/5680.mp3
PlayStatus:Playing
SongNo:0
Type:Audio
Title:Breather
Track:8
Artist:Afterlife
Album:erotic Lounge (Deluxe Edition)
Genre:Trance
URL:F:\mp3\Various Artists\erotic Lounge (Deluxe Edition)\Afterlife - Breather.mp3
Lyrics:
Bitrate:192
Samplerate:44
Thumb:special://masterprofile/Thumbnails/Music/3/3fed00a0.tbn
Time:00:06
Duration:05:17
Percentage:1
File size:7612416
Changed:True
now take a look in the command builder. the text {match.5} should give you the title {match.7} should give you the artist etc.
right now it is using RegEx to match anything that comes after a colon ':'
you could change it to match anything that comes after "artist:" and it would only give you the artist as {match.1}
assuming your music is properly tagged.
if you want to use TTS instead of OSD you just need to change the command to TTS.speak in the command builder.
-
try this:
and since I know you like these...
:hugs
-
Obrigado, o meu é assim, creio que esta correto:
Filename:musicdb://3/144/1484.mp3
PlayStatus:Playing
SongNo:0
Type:Audio
Title:Sunrise
Track:1
Artist:Simply Red
Album:25-Their Greatest Hits
Genre:Pop
Year:2008
URL:Y:\Shared Music\Simply Red\The Greatest Hits\01. Sunrise.mp3
Lyrics:
Bitrate:320
Samplerate:44
Thumb:special://masterprofile/Thumbnails/Music/c/cfb59647.tbn
Time:00:05
Duration:03:19
Percentage:3
File size:7989591
Changed:True
Muito obrigado pela nova configuração, já importei e vou testar.
-
Can't you just add a pause at the beginning of the command builder and play at the end?
put this before and after
XBMC.Send execbuiltin(playercontrol(play))
or you can use
XBMC.Send action (12)
- jitterjames
(I don't know why this says that it was written by Wanilton)
-
obrigado pelo retorno, então quando lançar a nova versão, explique como usar essa nova função, ou seja como configurar para funcionar corretamente...
-
I will try soon. Sorry, I've got a lot of other work to do right now! :bonk
-
Ok, quero montar um novo video tutorial, mas vou aguardar o lançamento desta função,
sem pressa,
Abraços
-
as promised.
I have added the speaksync command (that waits for TTS to finish before continuing)
I have improved the xbmc filter command (it had problems)
I have added the genxml and commands for xbmc music videos
-
Obrigado amigo, como dissemos no Brasil, "matou a pau"...isto é uma gíria, que significa que resolveu de forma maravilhosa o problema proposto.
-
and here I though that I had "brought it to life"! :P
-
James,
No XBMC existem algumas teclas de atalho, como por exemplo: tab, x, s, m, como eu posso fazer para ativar cada uma dessas funções com o voxcommando?
em particular tecla TAB
grato,
-
what does TAB do?
-
what does TAB do?
Olhe o anexo = Look the atached file
-
xbmc.send execbuiltin(action(fullscreen))
there are other commands that should work the same way listed here:
http://wiki.xbmc.org/?title=Keymap.xml
-
Funcionou corretamente, obrigado.
-
James,
Uma sugestão, eu gostaria de ter uma forma de organizar a lista de comando de forma alfabética, ou seja ordenar de A -> Z, isto dentro de um grupo de comando, com a lista crescendo isto pode ser útil
pode ficar naquele mesmo menu em que hoje habilita e desabilita grupos, expande grupos etc, ordene de A até Z...
Instalei novos comandos para o XBMC, mas estou com algo estranho acontecendo no filtro de filmes, no comando Search Movie, por vezes traz mais de um filme ao filtrar.
Outra coisa que notei foi que ao implementar o TTSsync, no comando que criei similar ao seu, para "What Music This is?" eu recebo a resposta antes da pausa acontecer, aí para e não dá play mesmo estando
o comando listado na sequência.Verifique meus dois últimos comandos do arquivo anexo (file atached) PS: Já consegui arrumar o comando, agora está ok...
Creio que encontrei um bug, ao usar a varinha mágica no comando TTS.SpeakSync, ao clicar nele, não esta levando o comando em si TTS.SpeackSync e sim TTS.Speak...para o construtor de comandos, verifique por favor.
Obrigado,
-
Sorting is a good idea. I will look into it.
I'm not really understanding the problem that you are having with the movie filter. Can you explain some more? If you are getting the movie you want, but some extra movies, that is due to a limitation of xbmc. I am only able to filter on 1 single word, so I search for the longest word that I can find, other than "the" add filter based on that. You can see in my demo that when I search for Iron Man, I get Both Iron man movies, and "the emperors new groove". This is because I filter on "iron" which is the sms keys 4-7-6-6 which would also work for G-R-O-O as in 'Groove'. Even so, it should get the movie you want on the screen.
There was a small mistake in availablecommands.xml on the tts.speaksync command. Thanks for finding it. Here's the fixed file.
I will take a look at your two speaksync commands...
-
you have to pause, then ask for the info, then speak.
your command wasn't pausing until the end...
Also, although sorting (a..z) is a good idea, you should really break your xbmc commands up into smaller groups.
Use whatever method is logical to you, but I would suggest, either 1 group for video and 1 group for music,
or something like I did, with one group for going to windows, one group for requesting media by name, one group for simple commands like pause, and play etc.
Even with sorting A..Z it will be easier to manage a lot of commands by using sub-groups.
Also, I found that in order to get the command to work I had to say Kew Artista. If you are using English for speech recognition, you should try to spell words phonetically using English pronunciation so Que will probably work better if you spell it KAY or even K. Actually I'm not really sure how you pronounce it :-[
-
Sorting is a good idea. I will look into it.
I'm not really understanding the problem that you are having with the movie filter. Can you explain some more? If you are getting the movie you want, but some extra movies, that is due to a limitation of xbmc. I am only able to filter on 1 single word, so I search for the longest word that I can find, other than "the" add filter based on that. You can see in my demo that when I search for Iron Man, I get Both Iron man movies, and "the emperors new groove". This is because I filter on "iron" which is the sms keys 4-7-6-6 which would also work for G-R-O-O as in 'Groove'. Even so, it should get the movie you want on the screen.
There was a small mistake in availablecommands.xml on the tts.speaksync command. Thanks for finding it. Here's the fixed file.
I will take a look at your two speaksync commands...
Ok James, a questão da busca dos filmes é exatamente igual ao que acontece no seu filme no you tube, e o que mencionas acima é que acontece comigo, compreendi tua explicação, obrigado
-
you have to pause, then ask for the info, then speak.
your command wasn't pausing until the end...
Also, although sorting (a..z) is a good idea, you should really break your xbmc commands up into smaller groups.
Use whatever method is logical to you, but I would suggest, either 1 group for video and 1 group for music,
or something like I did, with one group for going to windows, one group for requesting media by name, one group for simple commands like pause, and play etc.
Even with sorting A..Z it will be easier to manage a lot of commands by using sub-groups.
Also, I found that in order to get the command to work I had to say Kew Artista. If you are using English for speech recognition, you should try to spell words phonetically using English pronunciation so Que will probably work better if you spell it KAY or even K. Actually I'm not really sure how you pronounce it :-[
James,
Quanto ao comando eu já havia corrigido, descobri que era a falta do pause, foi ai também que constatei a questão do TTS que lhe informei.
Vou fazer isto que sugeriu quebrar em vários grupos para facilitar o uso
Não tenho dificuldade de usar PT BR no programa, o programa responde bem, sem precisar forçar para o inglês, as vezes preciso repetir algumas vezes determinada palavra para melhorar o acerto, mas feito isso, funciona perfeito.
-
i wish there was a better way but when I try to filter letters from two words I don't get any results. There is no SMS key to represent the space between words.
-
i wish there was a better way but when I try to filter letters from two words I don't get any results. There is no SMS key to represent the space between words.
James,
Bom dia,
Minha idéia, ao criar os arquivos XML, por exemplo de filmes, acrescentar o campo ID do filme ao lado do título do filme (segunda coluna), que é um campo numérico, então vou exemplificar o que pensei
Movies.XML
01. Green Zone - id 01
02. Avatar - id 03
Ao falar "Find Movie Green Zone" ele levaria para a busca no XBMC somente o numero ID deste filme, ou seja o voxcommando faria o filtro* e não o XBMC, para o XBMC ele traria como resultado o filme com aquele ID especifico.
Na prática para o XBMC seria como se eu desse esse comando "Find Movie 01"
* Não sei se isto é possível, aqui seria algo do tipo eu falo o título do filme, o voxcommando assume o ID do filme, para passar ao XBMC
Wanilton
-
the google translation of your last post is pretty bad, so I'm not 100% sure that I understand what you are saying.
- If we want to just play a movie without going to the information page, we can do this already using the filename.
- If we want to use filter to see the movie and the actors etc. we can only do this by filtering with SMS letters, so the ID# of the movie does not help us. If you know someone who knows a bit more about XMBC programming, maybe they can suggest something. Or maybe it would be possible to create some kind of XMBC plugin that could help us. Or maybe there is a way to filter using all the words and I am just doing it wrong...
- In some cases getting multiple movies back is good anyway. For example, if you say "Find Movie Lord of the Rings" it should display all 3.
Unfortunately, my knowledge of xmbc is limited to what I can do directly with the http api.
REFIZ O TEXTO,
-
Refiz o texto, tente ver se agora o google translate, faz um papel melhor..
-
I think my response is still valid.
-
I came up with the perfect solution for this. We create a bunch of templates for xbmc smart playlist. We get Vox to open the template, insert our playloads (e.g. replace {1} with the text: Iron Man
then we resave the file, and ask xbmc to load it.
I have done an initial test and it works very well. I am able to get a list of unwatched episodes of any TV show. And it is very fast.
It might be a bit difficult to set up if you are not running VC and XBMC on the same computer...
This is going to be very powerful :yay
-
Parece bem promissor, me deixe atualizado dos teus avanços. Só me explique por que considera difícil de implementar em uma máquina rodando em modo local..
-
I can probably send you something to test today if you want.
How about that link for the new skin zip? I want to test my new idea with that skin!
-
I can probably send you something to test today if you want.
Será um prazer poder testar ainda hoje.
How about that link for the new skin zip? I want to test my new idea with that skin!
Estou com dificuldades de fazer o upload, são quase 800 mb, inclusos os temas, melhor
baixar direto daqui
http://forum.xbmc.org/showthread.php?t=81601
ou o link para download
http://mod-skin.googlecode.com/svn/trunk/skin.AeonMQ-2/skin.AeonMQ-2-2.0.4.zip
Baixe essa versão, ela já esta pronta para receber atualizações automáticas, caso depois de instalar não atualizar automaticamente,
vá em Settings, Addons, no repositório, pressione a letra C isso vai ativar um menu de contexto, que permite forçar a atualização..
versão atual é 2.2.0.9, baixe tambem os temas via addons dentro do repositório tem os links.
-
OK. You should be able to just unzip this to your VC folder.
then import the xml file from the "export" folder into your tree.
then you need to edit all 3 of your new commands in the command builder... Look on the 2nd line parameter. It should look like this:
execbuiltin(ActivateWindow(MyVideoLibrary,C:\VoxCommandoDebug\VoxSmart.xsp,return))
replace the big part with the path to the VoxCommando folder.
Good luck!
EDIT: DOH! OK I am attaching the file now!
-
Ok, mas não recebi o arquivo para teste...ou basta alterar as configurações conforme exposto em teu tópico.
-
Eu creio que preciso deste file também, ele não estava no zip
VoxSmart.xsp
-
Leia o tópico acima...
-
you don't need this file. Vox will generate it on the fly
when you issue the command:
XBMC.LoadSmart smarts\unwatchedepisode.xsp
it will open the file smarts\unwatchedepisode.xsp replace the {1} with your payload and then write the file VoxSmart.xsp
the next command will tell xbmc to load this new "smart playlist".
-
ok entendi, agora vou testar
em filmes tenho que dizer para disparar o comando smart movie + title name, é isso?
Wanilton
-
yes, for example "smart movie Avatar"
but of course you can change the phrase to whatever you want to use. Just don't use the same phrase as other commands that you already have.
-
Tem como implementar o mesmo tipo de solução para músicas?? pois para filmes ficou muito bom..
Como configuro o comando scroll fast?
-
just copy your scroll command (clone), change the phrase to whatever you want to use (e.g. scroll fast), and then edit the loop time in the command builder. (see attached image)
--
As for the music: Do you know how to create a smart playlist in xbmc? You create one, and for the name of the item you are searching for, put in {1}
then copy the file generated to your VC folder (I put mine the .\smarts folder I think)
I will make another one though, for artist and one for album and upload them later today.
Since the method seems to work, I will probably create a wiki entry for it at some point.
-
Meu scroll esta com problemas, se digo scroll left ele esta indo para direita ao invés de ir para a esquerda, mas mais estranho é que o scroll em albuns, visualização como parede, ele não vai, fica patinando ele mantem sempre a tela inicial, mas faz um movimento para a direita como se tentasse o deslocamento.
Se possível exporte seus comandos Scroll por favor, que vou importar para o meu..
Wanilton
-
these use keyboard emulation so you need to be using VC on the same computer as XBMC and XBMC needs to be focused. (in front). This is OK though because it should work for most people, most of the time.
It is possible to do the same thing with xbmc.send action(1..4). This method is slower but it would work even if xbmc is running on another computer and even if it is not focused.
I have attached my keyboard emulation group.
-
James, obrigado, só me esclareça tem algum problema de eu trocar as opções do Payload List- Down, Up, Left, Right na configuração do scroll, por palavras em PT BR? seria substituir por estas palavras: abaixo, acima, esquerda, direita.
O que eu fiz, eu não troquei, apenas acrescentei estas, mas ao usar, as em inglês funciionam, quando altero para as opções em PT BR nada acontece.
Já quando uso estas palavras em PT BR no menu principal, todas funcionam ok, isto para navegar pelo menu.
-
I'm a bit confused. Can you please export a group that contains only two commands.
1 - the command that works
2- the command that does not work.
-
Deixa eu tentar outra vez...depois te informo se consegui.
-
look the atached file, em inglês os comandos estão ok, mas em português não funciona, mesmo que eu diga scroll direita fast...já em inglês está tudo ok...não compreendo.
-
yes because inputkeys has no idea what "cima" means. It knows what "up" means and it send the 'up' keypress. You need to use a payloadXML to map the values from cima to up. etc.
-
Compreendi o conceito mestre...
-
Compreendi o conceito mestre...
soon you will be the master!
-
OK I hope so...
Não te esqueça desse assunto, que muito me interessa:
I will make another one though, for artist and one for album and upload them later today.
Since the method seems to work, I will probably create a wiki entry for it at some point.
Se tiver como fazer algo para os títulos das músicas, também será bem-vindo.
-
OK I hope so...
Não te esqueça desse assunto, que muito me interessa:
-
Cool, ficou fácil agora...
-
oh Good! I was afraid it would just be confusing... I guess I you can understand spoken english quite well...
-
James,
Boa noite,
Se puder disponibilize um link para fazer download deste último tutorial do smart playlist, quero poder ver em tamanho maior, sem as restrições do you tube,
os teus dois últimos vídeos não consegui fazer download..
Wanilton
-
there is one small mistake in the video. the second action in the command builder is this:
execbuiltin(ActivateWindow(MyvideoLibrary,C:\VoxCommandoDebug\VoxSmart.xsp,return))
but if you are doing music searches it should be this:
execbuiltin(ActivateWindow(MyMusicLibrary,C:\VoxCommandoDebug\VoxSmart.xsp,return))
they both work, but the background image and the size of the cover art will be wrong for music searches if you use MyvideoLibrary.
-
Entendi, hoje vou fazer alguns testes, baseado no vídeo e neste teu último post.
-
James,
Consegui gerar meus primeiros smart playlists, e criar os comandos corretamente no vox...agora as dúvidas:
Tendo copiado os arquivos criados no smart playlists para o vox, os que estão na pasta userdata do xbmc são necessários?, ou eles podem ser descartados (deletados).
pergunto isto pois compactei a pasta com os comandos smart playlists, e coloquei no fórum pro pessoal conhecer a função, só estou preocupado se os que estão na
pasta do XBMC serem necessários para funcionar corretamente.
A segunda situação, é que ao criar um comando similar ao hits, funcionou como em seu vídeo, mas ao chamar um segundo artista,veio a mesma mensagem
que apareceu no vídeo como "EMPTY", será que precisa de algum passo a mais para acertar isto. Chamando depois outro artista volta a funcionar.
ficou bem legal e parabéns pelo tutorial, muito esclarecedor.
-
Yes, you can delete the files in the userdata folder of xbmc if you want. You don't need them at all, they are just used as a starting point to build the correct file.
The second situation is that when creating a command similar to the hits, as in his video work, but to call a second artist, came the same message
which appeared in the video as "EMPTY", will need some extra step to sort this out. After calling another artist back to work.
I'm not really understanding the problem here. Maybe you can send me your files zipped with .jpg exension and tell me which command is not working.
-
James,
Se você olhar seu vídeo, assim que você chama Bob Marley, aparece ok no playlist, na sequência você solicitou outro artista, apareceu uma mensagem, daí você solicitou outro artista, este veio correto para o playlist, aqui acontece a mesma coisa. A pergunta é. porque isso ocorre, ele nao entendeu o nome do artista, e portanto mostra como Empty = vazio, por não ter substituido com valor válido o campo {1}.. acredito que é isso que ocorra...como poderia ao apresentar a lista dar um play na primeira música selecionada? basta um XBMC.Send = Action(12)
Wanilton
-
It happened to me in the video because I asked for "Hits by Artist Jamiroquai", but I don't have any songs by jamiroquai that are rated higher than 3 stars.
I'm not sure if the same thing is happening to you.
-
Maybe you can send me your files zipped with .jpg exension and tell me which command is not working
James, no tópico com dicas para iniciantes em PT-BR, tem sempre a versão completa que uso atualizada, podes sempre fazer o download
e checar meu progresso, com os novos conceitos, uso o vox na unidade E: num sistema win7 64 bits...
Pergunta:?
Tem como criar caminhos relativos ao invés de absolutos, exemplo:
ao invés de utilizar E:\Voxcommando\movies.xml usar somente o diretório\nomedoarquivo.xml, que funcione independente da unidade em
que for instalada.
ao disponibilizar o arquivo para outros usuários que tenham uma única unidade C:
acaba dando erro por caminho não encontrado ou seja fica procurando arquivos em E: quando o programa esta rodando em C:
grato
Wanilton
-
to use relative paths, if the file is in the same folder as VoxCommando then you only need to use the filename. You don't need a \
if a file is in a subfolder of VoxCommando named abc and the file name is foo.xml
then the relative path would be: abc\foo.xml
The only time you can't use a relative path, is when you are telling xbmc which smart playlist you want to load.
execbuiltin(ActivateWindow(MyVideoLibrary,e:\VoxCommando\VoxSmart.xsp,return))
I will find a solution for this in the future.
Clear?
By the way I started to experiment with JSON today. I have a long way to go but it looks promising. I think it will be possible to use both / either http or JSON so it will give us even more control.
-
Obrigado, James, entendi...
Tenho acompanhado o tópico do JSON no fórum do XBMC, mas não me parece tão fácil de usar como com HTTP, mas se pudermos ter os dois maravilha, quem sabe funcione ainda melhor.
Fazendo testes o dia todo, novidades da SKIN AEON MQ, vamos implementar FAVORITES, onde pode personalizar o menu de várias formas, está praticamente pronta para ser lançada, quando
acontecer te aviso, o MarcosMQ me pediu que caso tenhas alguma situação que queira na skin é para você mencionar, que iremos providenciar.
abraços
Wanilton
-
I have tried to mention the skin in some of my posts. If you want me to mention something specific or to provide a link to somewhere, just let me know.
Once again, the translation of your last message is not completely clear... is that what you are asking?
-
Nothing...
somente comentários, não se preocupe.
Wanilton