VoxCommando

PT-BR Support => XBMC => Topic started by: Wanilton on October 08, 2010, 09:05:36 PM

Title: Solicitações
Post by: Wanilton on October 08, 2010, 09:05:36 PM
James,

Boa noite,

Uma solicitação, tem como ao invés de eu receber a hora atual no formato curto, atualmente é desta maneira 21:03, eu prefiro ter a resposta assim vinte e uma hora e três minutos, como posso implementar desta formar no vox?
ou assim 21 horas e 03 minutos..

Alguma previsão de quando teremos algum novo tutorial em vídeo?

Abraços

Wanilton
Title: Re: Solicitações
Post by: jitterjames on October 08, 2010, 10:37:14 PM
There is no way to do this with VC at the moment, but you could do it with vbscript quite easily.

See this:
http://voxcommando.com/forum/index.php?topic=72.msg383#msg383

A tutorial.... hmmm.  I would like to make a VC for beginners for the new version.  I'm working hard on another project at the moment, and there are some features for VC that I want to work on first, so I probably won't get to it for a little while.

Is there something in particular that you would like me to cover in my next tutorial?
Title: Re: Solicitações
Post by: Wanilton on October 09, 2010, 09:30:17 AM
James,

Eu entendi o conceito, mas como fica a instrução para que este script seja iniciado no vox, vi que é via LAUNCH, mas
basta somente apontar o caminho para o file, ou precisa de algo para rodar o script além do caminho em si, isso eu não
entendi...

Um tutorial explicando o uso de vbscript com exemplos simples pode ser interessante, mas fique a vontade, sei que tens
outras prioridades.

Wanilton
Title: Re: Solicitações
Post by: jitterjames on October 09, 2010, 03:19:03 PM
you just need to save the code from Rudmei's example in a file with .vbs extension.

Then you just run it with Launch.  That is all.  You can modify the code to say the time in your language, the way you like by changing

Code: [Select]
ttsmessage = "es ist jetzt: " & hour(now) & " Uhr " & minute(now)
to something else like

Code: [Select]
ttsmessage = "o tempo é agora de, " & hour(now) & " horas e " & minute(now) & " minutos"
Title: Re: Solicitações
Post by: Wanilton on October 09, 2010, 03:46:02 PM
Obrigado James, eu acabei conseguindo fazer funcionar com sua dica.

No entanto, não consigo selecionar uma voz TTS adequada para a leitura do script, tem alguma maneira de sanar isso?

Estou a testar tudo o que posso...

Title: Re: Solicitações
Post by: jitterjames on October 09, 2010, 04:19:49 PM
that's a good question.  I tried using

set sapi.Voice = sapi.GetVoices("","").Item(1)

but I get an error.  It works if I use

set sapi.Voice = sapi.GetVoices("","").Item(0) but that doesn't help since I just get Anna.
Title: Re: Solicitações
Post by: Wanilton on October 09, 2010, 04:30:58 PM
Beleza, de dica, testei com sucesso aqui, consegui rodar com a voz do Felipe *TTS Voice Brasileiro,
no meu caso, voz 21...aqui como deixei o script para funcionar 100%

Dim sapi,ttsmeassage
set sapi = CreateObject("sapi.spvoice")
set sapi.Voice = sapi.GetVoices("","").Item(21)
ttsmessage = "Hora certa, neste instante, " & hour(now) & " horas e " & minute(now) & " minutos"

sapi.Speak ttsmessage

Muito grato...vou tentar fazer funcionar os cálculos matemáticos básicos, aqui só tenho dúvidas de como construir a frase para acionar, pois temos um número seguido do operador (+,-,*,/) seguido de outro númerro..e quando ele postou não colocou esta informação, ou eu não entendi direito essa parte.

Title: Re: Solicitações
Post by: jitterjames on October 09, 2010, 07:05:46 PM
I'm not sure if Rudmei tested that particular example.

anyway try this.
Title: Re: Solicitações
Post by: Wanilton on October 11, 2010, 05:44:59 PM
James, boa tarde, não querendo abusar de sua inteligência e paciência, podes me mandar dois comandos para XBMC, um para browse music genre usando payload file genres.xml e outro playing music by genre.

Obrigado pelo suporte
Title: Re: Solicitações
Post by: jitterjames on October 11, 2010, 05:58:24 PM
ActivateWindow(10502,musicdb://1/)

There is a trick to finding this.  If you go to music or vido library.  Right-click on something like Genre, or years etc and choose "add to favourites"

C:\Users\<yourusername>\AppData\Roaming\XBMC\userdata\favourites.xml

for example if you want to jump to music from 1970 you can do this trick and you will get:

ActivateWindow(10502,musicdb://9/1970/)

The other question I will answer in a minute...
Title: Re: Solicitações
Post by: jitterjames on October 11, 2010, 06:22:47 PM
to view songs of a certain genre using smart playlists:

Title: Re: Solicitações
Post by: jitterjames on October 11, 2010, 06:27:00 PM
and here's the command to just request a genre and have it start playing
Title: Re: Solicitações
Post by: Wanilton on October 26, 2010, 10:45:52 AM
James,
Explique como funciona  em opções do VOX,  Confirmation Command Phrases, eu acredito que é para validar ou cancelar
o reconhecimento efetuado pelo vox dos comandos, mas não tenho certeza se é para isso mesmo :bonk.

Eu tentei usar, mas não obtive sucesso no uso, isso já está funcionando?

O que acontece se em 12 segundos não for dito uma da palavras para confirmar ou cancelar?
Title: Re: Solicitações
Post by: jitterjames on October 26, 2010, 11:23:20 AM
I haven't really tested it very much but I think it works.  It probably still needs improvement.

The idea is to allow confirmation of certain commands.  For example if you have a command to turn off the computer.  You want to double check this command because it would be really annoying if the computer shut off when you did not want it to.  You can set the confirm, cancel, and time-out in options.

If you confirm the command it should do it.

If you wait x seconds then it should automatically cancel.
Title: Re: Solicitações
Post by: Wanilton on October 26, 2010, 11:41:50 AM
Assimilei o que explicasse, minha interpretação estava próxima disso, mas ao mesmo tempo diferente, explico:

Pensei se tratar do seguinte: imagine a palavra "esquerda" = left

Eu demorei para fazer o sistema assimilar o som da palavra "esquerda" com a palavra escrita "esquerda", para conseguir tive que inibir todas as classes de comandos, deixando somente a de navegação ativa, onde se encontra tal palavra esquerda, então eu estava
a pensar que o vox ao reconhecer com um percentual baixo tal palavra, eu poderia validar aquele comando para que o sistema entendesse que aquilo estava correto, e com isso melhorar o "aprendizado", e o nível passaria a um patamar mais adequado, ou seja digamos que ele reconheceu a palavra esquerda a 15%, ao validar aquilo como correto, ele passar a entender isso mais facilmente, melhorando o índice de reconhecimento. Para contornar isso, hoje uso muito OPTIONS via seleção OSD, até que ele aprenda corretamente o que estou a dizer.

Hoje para que isso ocorra, eu preciso passar um bom tempo, em certas palavras até alcançar um índice de reconhecimento de mais de 80%...pensei que talvez além de confirmar certas ações confome explicado em seu
exemplo ele pudesse também passar a validar o comando como correto, é como se eu informasse ao sistema que aquela palavra reconhecida com um percentual ruim, estava correto.

Tem situações que é exatamente o contrário, eu digo água, ele entende fogo, e por mais que eu diga água, ele vai melhorando cada vez mais fogo, daí a única solução é apagar a palavra fogo e substituir por outra, assim
que essa outra palavra passe a ser reconhecida, eu volto a colocar fogo novamente na lista de comandos. Aqui eu também achei que seria uma forma de dizer ao sistema, olhe não é isso que estou dizendo, isso não esta correto,
cancelando assim tal opção.

Espero que isso faça sentido.
Title: Re: Solicitações
Post by: jitterjames on October 26, 2010, 12:13:10 PM
I have no method of training speech within VC. :-[  I understand that windows may try to adapt to you as you use the speech engine, but I have no control over it.

The best way to really control the learning process is

1) Use the windows training sessions  (you can use them more than once if you want)

2) Use windows to do some dictation in word.  Correct it when it gets it wrong.  The process of correcting it is explained in one of the training sessions.

The idea of confirming a command in VC has nothing to do with training windows to understand you, and it is not intended to work this way.  It is only intended to help avert disaster, just as you would be asked to confirm before deleting a file, or exiting a program without saving.
Title: Re: Solicitações
Post by: Wanilton on November 11, 2010, 04:45:36 PM
James,

No comando Play Artist, como posso depois que a macro roda, ouvir via TTS, "playing now artist (Name of artist)..
tentei usar o comando XBMC. Getcurrentplaying após o comando Results.Reg Ex, e por fim o TTS.Speak, mas
não consegui fazer funcionar.

grato

Wanilton
Title: Re: Solicitações
Post by: jitterjames on November 11, 2010, 04:54:46 PM
please try again.  use shorter sentences.  I can't understand the translation well enough to answer this.  sorry.
Title: Re: Solicitações
Post by: Wanilton on November 11, 2010, 05:14:01 PM
James,

Tem alguma maneira de no final  das instruções de uma macro eu chamar a execução de outro comando do mesmo grupo, objetivo meu ao chamar o Comando Play Artista Enya
receber assim que executar um retorno via TTS a resposta executando agora Artista Enya.

Title: Re: Solicitações
Post by: jitterjames on November 11, 2010, 05:20:21 PM
tts.speak     Now Playing Artist {1}
Title: Re: Solicitações
Post by: Wanilton on November 11, 2010, 06:01:02 PM
James,

Funciona, mas eu pretendo deixar ele ainda melhor, veja o arquivo anexo.

Se possível teste e corrija se for o caso, uso com o XBMC...Comando Play Artist...

Tem como criar um delay na estrututra do comando, quero isto após a execução do SetPlaylistSong(0) para que não dispare imediatamente o nome do artista,
tem vezes que é tão rápido o funcionamento do comando, que a música sequer iniciou e eu ja escuto o nome do artista, ou ainda em
parametros alguma forma de segurar por alguns instantes o restante da execução da marcro, como se fosse uma espécie de micro pausa.

Tem o delay geral do comando, mas aqui eu quero apenas segurar alguns segundos a liberação da resposta com o nome do artista.

Para ficar mais claro, quero disparar o comando Play Artist Enya, e somente alguns segundos depois da música iniciar, ouvir o retorno via TTS.Speaksync.


Wanilton
Title: Re: Solicitações
Post by: Wanilton on November 12, 2010, 05:43:21 AM
James,

Tentei alterar o comando play movie {1}, para poder ouvir o retorno via TTS, mas não estou conseguindo, creio que errei na criação do comando,
se possível verifique o arquivo anexado (attached file).
Title: Re: Solicitações
Post by: jitterjames on November 12, 2010, 11:47:08 AM
i think you just need to add
VC.Pause 500

as the second action.  XBMC needs a bit of time to load the movie before you can ask for now playing info.  You may need to change the 500 to a bigger or smaller number to fit your needs.  500 = 1/2 second.
Title: Re: Solicitações
Post by: jitterjames on November 14, 2010, 09:33:22 AM
where did everyone go?

heh, heh.  Wanilton, did this work for you?
Title: Re: Solicitações
Post by: Wanilton on November 14, 2010, 04:09:03 PM
Hello James,

Sim funcionou, mas ainda não esta como quero, preciso de mais tempo para testar, estou envolvido em testes da nova versão da Skin AeonMQ2,
e tem sobrado pouco tempo.
Não sei sequer se coloquei o comando no local (lugar) correto, funcionou, mas ainda estou encontrando alguns problemas, como recebendo retorno sem o nome
do artista, entre outra situações, farei testes amanhã que espero me deixem mais satisfeitos.

Abraços,
Title: Re: Solicitações
Post by: Wanilton on December 07, 2010, 04:57:20 PM
James,

Ola,

Uma pergunta, existe alguma maneira de eu conseguir usar o recurso TTS.Speak para ler as notícias de minha barra RSS no XBMC?

Wanilton
Title: Re: Solicitações
Post by: jitterjames on December 07, 2010, 11:56:05 PM
not from the xbmc bar, but maybe from the rss feed itself.  What is the web address of the feed?
Title: Re: Solicitações
Post by: Wanilton on December 08, 2010, 04:37:37 AM

Here urls, one for cine, one for music, one for news...

http//rss.cinema.uol.com.br/ultnot/index.xml
http//rss.musica.uol.com.br/ultnot/index.xml
http//rss.noticias.uol.com.br/ultnot/index.xml

Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 09:58:49 AM
Hello James,

Algumas considerações no uso da nova versão do VoxCommando:

Ao iniicilizar ele ficou muito rápido, e na maioria das vezes carrega sem problemas, mas tem algumas vezes que ocorre erro em carregar
dois grupos de comando, XBMC Emular teclado e o XBMC Musicas, sendo que na maioria das vezes o erro ocorre mais no Emular teclado,
estanho que em muitas outras vezes ele carrega sem erro algum.

O que seria esse erro, aparece uma Janela similar a esta
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2Fmm.png&hash=ff16678901823114fcfccacccab4f80eec4cbccf)

Anexo meu arquivo de configuração atual

2) Eu continuo com dificuldade de ao iniciar a reprodução de um album, receber a informação via TTS, mesmo tendo setado um delay
ele continua dizendo play now MATCH 1, quando reproduzo o segundo álbum, passa a funcionar normal, o problema é que existe um
tempo até o player ser inicializado pela primeira vez, e mesmo chegando a quase 1,5 minutos eu ainda pego Play now Match 1, quando
deveria ouvir Play Now Enya ou o nome de algum outro artista, o comando que uso para tal é Play Artist + name of artist.

3) Vendo seu último video, continuo percebendo no seu busca por filmes, ao vir o resultado fanart diferente do filme solicitado, mas
estranho por que não tenho esse tipo de situação aqui, talvez diferença de processamento esteja fazendo a diferença, eu recebo
corretamente so o fanart do filme que mandei filtrar.

grato

Wanilton
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 11:07:12 AM
I can't read the error message because the image you uploaded is too small.  That is ok though becuase I know what it is, and I am working on a solution.  You will usually get this error if you use a payloadXML file more than once, especially in the same group.  I am having to try a lot of creative solutions to get around all of Microsoft's bugs.

I will figure it out eventually!  It might seem like we are going backwards right now but it will be worth it.
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 11:47:02 AM


2) Eu continuo com dificuldade de ao iniciar a reprodução de um album, receber a informação via TTS, mesmo tendo setado um delay
ele continua dizendo play now MATCH 1, quando reproduzo o segundo álbum, passa a funcionar normal, o problema é que existe um
tempo até o player ser inicializado pela primeira vez, e mesmo chegando a quase 1,5 minutos eu ainda pego Play now Match 1, quando
deveria ouvir Play Now Enya ou o nome de algum outro artista, o comando que uso para tal é Play Artist + name of artist.


I can't figure out which command you are talking about.  Your command tree is kind of BIG!  I can only find 2 commands for play album but they don't use TTS.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 12:44:59 PM
XBMC Musicas
XBMC Play Artist
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 01:21:16 PM
OK.  I thought said you were having problems with play ALBUM, not play artist.

I feel like I already answered this question before.  I don't know why you are asking XBMC for the artist since you already know the artist, because it is payload 1.

just use

TTS.SpeakSync     Playing now Artist {1}

and delete:
- pause 55
- XBMC.Send getcurrentlyplaying
- Results.RegEx artist:(.*)
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 01:33:36 PM
By the way Wanilton,

I noticed that you have two commands that will interfere with each other.

The last two commands of XBMC MUSICAS are both using the phrase:

 "play song" <songname>

Also since the xbmcSongs.xml is the longest to load you are increasing your load times for nothing, and wasting memory, and creating more work speech engine which might cause it to take longer to recognize your commands.

The names of the commands are:
- xbmc play musica
- xbmc play song

You should delete one of them.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 02:24:22 PM
Hello James,

Deletei os comandos em duplicidade, mas continuo não tendo sucesso no comando Play Artist,
o que eu quero é ouvir após disparar o comando e iniciar a primeira múisca, tocando agora ou
playing now "name of artist", mas continuo ouvindo agora Playing now Match One...e agora após excluir
- pause 55
- XBMC.Send getcurrentlyplaying
- Results.RegEx artist:(.*)
mesmo trocando para outra artista, que antes estva ok, agora eu tenho novamente Match 1,
me explique a nova função de teste de payload, eu coloquei no caso deste comando, o nome
do artista e dei um salver e executar, ok funcionou, mas ja ali percebi o match 1, isso claro
com o XBMC rodando em background.

Upei meu diretório completo, caso queira dar uma verifica em particular nesse comando Play
Artist em XBMC Musicas

Download here
https://github.com/downloads/Wanilton/VoxCommando/VoxCommando.zip

Thanks,
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 02:50:15 PM
???

I downloaded your compete zip again.  I looked at the command: "xbmc play artist"

you have not changed anything

I guess there is a communication problem, but I do not see how I can help you.  I think you should read my previous message more carefully.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 03:00:46 PM
James,

Eu devo ter deletado então o comando  Play Artist, onde eu retirei as linhas mencionadas por você, no tópico acima, eu li com cuidado,
mas eliminei o comando errado...

Estou ficando louco, minha esposa já disse, "está falando com um computador e ainda quer resposta dele",
enlouqueceu, pode jogar no hospício (Lugar onde ficam os loucos, malucos e similares) ;D

Wanilton
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 04:00:22 PM
It happens to us all.  You need to take a break and go play with your kids!

Just in case you are still having problem try this.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 05:03:06 PM
Obrigado pelo conselho, seu arquivo de configuração funcionou ok...mais uma vez obrigado pelo suporte...
mas tenho mais um desafio..

Eu tenho artistas que são Brasileiros, e para estes quero usar uma outra voz TTS, distinta das que uso
para os artistas de outras nacionalidades, uma das soluções mais simples seria clonar o comando e usar
outra voz, até aí tudo bem, mas caio naquela situação de ter comandos praticamente idênticos, onde
só altera a voz TTS, e obviamente a forma de chamar tal comando, alguma sugestão de como eu posso
implementar isso, talvez com o uso de dois payloads separando os artistas, espero que compreenda
meu pedido.

Antes que pergunte para que isso, fácil, fica horrível ouvir uma voz como a do Dave, pronunciando palavras
em Português, já ouvir a voz do Felipe lendo em PT BR é muito melhor, por outro lado também é verdadeiro
que ouvir Dave, é ótimo para os artistas em inglês (quase a maioria)..

Obrigado mais uma vez pela configuração do Play Artist..

Wanilton
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 06:04:50 PM
AHA.  That's what I like.  A challenge that shows off how we can find creative solutions with VoxCommando!

I think the best way is to do it is with a single command so that you don't need to load all of your artists twice.  Like you said, we need two payloads.

1 payload for the artist
1 payload for the language.

take a look and see if it makes sense what I did...

put the file "ttsvoicebylanguage.xml" into your payloads folder, and import "play music by artist bilingual.xml"
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 06:33:24 PM
Hello James,

Fiz alguns testes, ainda não esta ok, se deixar o payload for the artists como me enviou ao enviar o comando
ele sequer pega o nome do artista, invertendo a ordem colocando o payload for the artists antes do payload
for the language, passo a ver o comando correto, mas não funciona, mesmo com percentual de quase 90%,
penso que temos que estudar um pouco mais o assunto, outra observação o comando aparece ok na janela
onde tambem aparece o percentual, mas as ações não são listadas no histórico de comando (command history).

Wanilton
Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 06:56:05 PM
I don't understand the translation of this message, but I tested this and it works perfectly with what I sent you.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 07:36:17 PM
James,

Vou procurar simplificar:

Usei o recurso do Test Payload, e esta ok sua estrtura de comando por ali, setei Dave no primeiro Campo, Enya no segundo campo e funcionou corretamente, agora quando mando executar  o comando, usando minha voz não funciona,
alterei a frase que dispara o comando para "Play Music by", o VC  reconhece só esta parte do comando, o nome do artista não sei porque não aparece junto ao Play Music BY, não disparando o comando. Até aqui não fiz nenhuma alteração
no seu arquivo.

Agora se eu altero a ordem passando artista para payload 1, passa a reconhecer também o artista, mas não dispara a ação, mesmo eu alterando na estrutura do comando onde é payload 2 passa a ser payload 1,
e onde é payload  1 passa a ser payload 2..
isto significa o seguinte
This order, recognize but no work
Play Music by
XBMC.Artists.xml {1}
payloads\ttsvoicelanguageby.xml {2}

No CommandBuilder eu alterei onde era 2 coloquei 1  e onde era 1 coloquei 2, e mesmo assim não funcionou

De qualquer maneira ainda tem algo que não entendi, como o VC vai saber qua das 2 vozes deve carregar, como ele sabe que o artista X é brasileiro para usar a voz do Felipe, ou que para a artista
Y ele deve usar a voz do Dave?

Title: Re: Solicitações
Post by: jitterjames on December 10, 2010, 08:15:47 PM
I have no explanation why it does not work the way that I sent it to you except that I should have used Philip instead of Peter

maybe you should send me your whole folder again.
Title: Re: Solicitações
Post by: Wanilton on December 10, 2010, 08:44:36 PM
Download here

http://github.com/downloads/Wanilton/VoxCommando/VoxCommando.zip
Title: Re: Solicitações
Post by: jitterjames 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>"
Title: Re: Solicitações
Post by: Wanilton 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.

Title: Re: Solicitações
Post by: jitterjames 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!
Title: Re: Solicitações
Post by: Wanilton on December 11, 2010, 08:30:12 AM
Thanks James,

Obrigado pela explicação..

e boa viagem

Wanilton
Title: Re: Solicitações
Post by: Wanilton 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
Title: Re: Solicitações
Post by: jitterjames 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.......))
Title: Re: Solicitações
Post by: Wanilton 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.
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton on February 19, 2011, 09:30:03 AM
Understand, thank you again, very easy.
Title: Re: Solicitações
Post by: Wanilton 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..
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton 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.
Title: Re: Solicitações
Post by: Wanilton 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.
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton 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.

(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2Fvoxtest.jpg&hash=260fda9b8a28d17b64341f6d9903fe232e11adac)
Title: Re: Solicitações
Post by: jitterjames 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?
Title: Re: Solicitações
Post by: jitterjames 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
Title: Re: Solicitações
Post by: jitterjames 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)
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton on February 19, 2011, 02:14:46 PM
wonderful, thanks a lot, you are Genius ???  :P

Wanilton
Title: Re: Solicitações
Post by: Wanilton 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
Title: Re: Solicitações
Post by: jitterjames 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...
Title: Re: Solicitações
Post by: Wanilton on February 21, 2011, 11:21:19 AM
Ok, erro de configuração do receiver...it´s ok now..thanks.. :bonk
Title: Re: Solicitações
Post by: Wanilton 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
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton on February 21, 2011, 08:10:22 PM
Thanks James..lazy me  ??? yes, today only...thanks for tip keyboard actions.
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton 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
Title: Re: Solicitações
Post by: jitterjames 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.
Title: Re: Solicitações
Post by: Wanilton 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
Title: Re: Solicitações
Post by: jitterjames on March 27, 2011, 07:36:11 PM
VC can do the "if then else now", but we still need a way to know the language of the song...  I'm not sure how you would do this...  ???

First challenge is the know the language
2nd challenge is to store the language
3rd challenge is to tell VC the language at the right time.

tricky!

I think I could probably do this with mediaMonkey using custom id3 tags, but I'm not sure about XBMC
Title: Re: Solicitações
Post by: Wanilton on March 27, 2011, 07:42:41 PM
Obrigado pela Dica, tem muitos campos não usados para nada, pensei em usar um destes campos para colocar o dado Linguagem, mesmo que a função inicial deste campo não seja exatamente para isso, pensei em usar o campo Grouping, que fica na parte estendida da TAG, mas preciso ver se existe este campo disponível no XBMC, para guardar a informação.
A ideia do custom id3 também é boa para uso no mediamonkey.

Assim que eu testar, dou feedback,

Grato

Wanilton
Title: Re: Solicitações
Post by: jitterjames on April 13, 2011, 10:54:27 PM
Obrigado pelo conselho, seu arquivo de configuração funcionou ok...mais uma vez obrigado pelo suporte...
mas tenho mais um desafio..

Eu tenho artistas que são Brasileiros, e para estes quero usar uma outra voz TTS, distinta das que uso
para os artistas de outras nacionalidades, uma das soluções mais simples seria clonar o comando e usar
outra voz, até aí tudo bem, mas caio naquela situação de ter comandos praticamente idênticos, onde
só altera a voz TTS, e obviamente a forma de chamar tal comando, alguma sugestão de como eu posso
implementar isso, talvez com o uso de dois payloads separando os artistas, espero que compreenda
meu pedido.

Antes que pergunte para que isso, fácil, fica horrível ouvir uma voz como a do Dave, pronunciando palavras
em Poirtuguês, já ouvir a voz do Felipe lendo em PT BR é muito, mas muito melhor, o contrário é verdadeiro
Dave, é ótimo para os artistas em inglês (quase a maioria)..

Obrigado mais uma vez pela configuração do Play Artist..

Wanilton

I think I know how you can do this now.  You would need to keep all of your brazilian music under one folder, and other music in another folder.

d:\mp3\brazilian\artist\album\song.mp3

d:\mp3\english\artist\album\song.mp3

if you are willing do do this then you can have VC know what language it is by looking at the url or path. 

xbmc.send      getcurrentlyplaying

returns this
Code: [Select]
Filename:musicdb://2/471/670/35083.mp3
PlayStatus:Playing
SongNo:0
Type:Audio
Title:The Sign (1994)
Track:1
Artist:Ace Of Base
Album:Disco
Genre:Dance
URL:D:\mp3\Various Artists\Disco\Ace Of Base - The Sign (1994).mp3
Lyrics:
Bitrate:128
Samplerate:44
Thumb:special://masterprofile/Thumbnails/Music/0/03f43c80.tbn
Time:00:31
Duration:03:12
Percentage:16
File size:3080192
Changed:True

as you can see, it returns the path under URL.  You can use the logic builder to check if URL contains \brazilian\ and then choose your TTS voice.
Title: Re: Solicitações
Post by: Wanilton on April 13, 2011, 11:01:41 PM
Hello James,

Good night,

First thank you, for this possible solution, i will try, but with many others folders
I think in category folders by language

Brazilian Portuguese
Italian
French
English
Spanish

etc..

Wanilton
Title: Re: Solicitações
Post by: jitterjames on April 13, 2011, 11:05:57 PM
OK, but start by moving some artist (or albums) to Brazil and then we will test, before you go to the trouble of reorganising everything!
Title: Re: Solicitações
Post by: jitterjames on April 13, 2011, 11:08:21 PM
there is one other possibility (in the future).  The google translate api has the ability to guess what language something is in.  But I don't know how well it would do with names.

You could test it here with some artist names

http://translate.google.com/#

on the left you can select "detect language"

if it works, I think I can add this feature to the VC translate commands.
Title: Re: Solicitações
Post by: Wanilton on April 13, 2011, 11:11:55 PM
OK, but start by moving some artist (or albums) to Brazil and then we will test, before you go to the trouble of reorganising everything!

Ok, good idea.
Title: Re: Solicitações
Post by: Wanilton on April 13, 2011, 11:17:47 PM
there is one other possibility (in the future).  The google translate api has the ability to guess what language something is in.  But I don't know how well it would do with names.

You could test it here with some artist names

http://translate.google.com/#

on the left you can select "detect language"

if it works, I think I can add this feature to the VC translate commands.

WOW, work great, i tested many brazilian artists and return correctly language..português detectado...
Title: Re: Solicitações
Post by: Kalle on April 14, 2011, 04:36:25 AM
there is one other possibility (in the future).  The google translate api has the ability to guess what language something is in.  But I don't know how well it would do with names.

You could test it here with some artist names

http://translate.google.com/#

on the left you can select "detect language"

if it works, I think I can add this feature to the VC translate commands.

Wow, cool feature
Title: Re: Solicitações
Post by: jitterjames on April 14, 2011, 09:41:04 AM
this is working and will be included in 0.886

we will have two new commands.

Googletrans.fr  "blah blah"   will detect language and convert to french.  You don't have to specifiy the input language.

Googletrans.detect    "blah blah"   will detect the language and return a two letter code telling you what language it *thinks* you sent it.
Title: Re: Solicitações
Post by: Kalle on April 14, 2011, 09:43:53 AM
this is working and will be included in 0.886

we will have two new commands.

Googletrans.fr  "blah blah"   will detect language and convert to french.  You don't have to specifiy the input language.

Googletrans.detect    "blah blah"   will detect the language and return a two letter code telling you what language it *thinks* you sent it.
this is perfect!!!
Title: Re: Solicitações
Post by: jitterjames on April 14, 2011, 09:51:21 AM
But I must remind you, it will probably not be able to detect names of people or bands reliably.

It will be nice though if you want to create a command where you can select any text and have VC convert it to your language.
Title: Re: Solicitações
Post by: Wanilton on April 15, 2011, 06:36:04 PM
Hello James,

If possible create one command for me (music), using your idea for check url, I create language folders

Y:\Shared Music\Portuguesbr\Artist\album
Y:\Shared Music\Portuguespt\Artist\album
Y:\Shared Music\Inglesbr\Artist\album
Y:\Shared Music\Inglesus\Artist\album
Y:\Shared Music\Espanhol\Artist\album
Y:\Shared Music\Italiano\Artist\album
Y:\Shared Music\Francês\Artist\album

My goal: Use voice tts apropriate with the language of album

thank you,

Wanilton

Minha idéia é ter 2 comandos na verdade, um para pedir determinado artista e ouvir o nome deste artista X, usando o TTS Adequado, baseado no filtro da URL
e outro comando, onde ao ouvir determinada música, filtre a url daquele album,  informando por TTS baseado na linguagem, nome da musica, do álbum e do artista.

Big Desafio for you, my friend.

Wanilton
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 12:11:17 AM
yes, tomorrow.  sorry I forgot!  too busy with other things.
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 10:45:34 AM
let's start with this...  take a look at the attached command.  This is for the automatic announcing of new tracks using xbmc events.

You will need to edit the voice names and the text that is spoken.

I have not done all the languages yet.  We should check that it works before we do them all or it will just get too confusing.
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 10:52:56 AM
Big Desafio for you, my friend.

Wanilton

Just figuring out what Desafio meant was a challenge for me!
Title: Re: Solicitações
Post by: Wanilton on April 16, 2011, 11:00:37 AM
Thanks, work fine, wonderfull...great JOB... ;D ;D ;D

Ja editei o restante das linguagens, e está perfeito, se puder pensar em algo para que ao solicitar um artista ter algo semelhante, será sensacional, mas grande avanço, estou muito satisfeito com o resultado, eu sonhei muito com este recurso, parabéns a ideia esta mais que aprovada.


Mesmo sendo um desafio para mim, tinha certeza que para você seria mamão com açúcar.

Wanilton
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 11:55:44 AM
notice that in the logic statement I used this form for the parameter of (A)Contains(B)

{LastResult}&&\Portuguesbr\

this is an alternate way to put A&&B

I tried using

({LastResult})Contains(\Portuguesbr\)

but it did not work, probably because {LastResult} is a big long multiline text result and it could not recognize the pattern...

Anyway, using A&&B is actually easier, I think. :)
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 11:59:47 AM

Ja editei o restante das linguagens, e está perfeito, se puder pensar em algo para que ao solicitar um artista ter algo semelhante, será sensacional, mas grande avanço, estou muito satisfeito com o resultado, eu sonhei muito com este recurso, parabéns a ideia esta mais que aprovada.

send me your two commands and I will see if I can adapt it to also word when requesting.

two commands:

1: the new xbmc event based one, with all the languages, based on what I sent you today

2: the command you currently use to ask xbmc for information.
Title: Re: Solicitações
Post by: Wanilton on April 16, 2011, 01:07:23 PM
Hello James,

My Commands,

Thanks for all...very powerfull command. I LOVE IT

Se você conhecer francês, pode corrigir as frases que criei, isso também vale para as demais línguas.

For others users, I managed all my artists and respectives albums, ex:

Unit:\Language\artist\album

in my case
y:\portuguesebr\paula fernandes\passaro ferido

y:\inglesus\B B King\Deuces Wild

y:\espanhol\Nelly Furtado\My Plan

In vox import the command "Dectetor Linguagem XBMC"
xbmc.send      getcurrentlyplaying
returns this
Code:
Filename:musicdb://2/471/670/35083.mp3
PlayStatus:Playing
SongNo:0
Type:Audio
Title:The Sign (1994)
Track:1
Artist:Ace Of Base
Album:Disco
Genre:Dance
URL:D:\mp3\Various Artists\Disco\Ace Of Base - The Sign (1994).mp3
Lyrics:
Bitrate:128
Samplerate:44
Thumb:special://masterprofile/Thumbnails/Music/0/03f43c80.tbn
Time:00:31
Duration:03:12
Percentage:16
File size:3080192
Changed:True
as you can see, it returns the path under URL.  You can use the logic builder to check if URL contains \portugues\ and then choose your TTS voice.

Wanilton
Title: Re: Solicitações
Post by: Wanilton on April 16, 2011, 03:12:45 PM
James, more One Command - look this is ok?
Title: Re: Solicitações
Post by: jitterjames on April 16, 2011, 07:51:01 PM
looks ok. try this.

I can't really test because I don't have the same folder layout.
Title: Re: Solicitações
Post by: Wanilton on June 19, 2011, 02:29:17 PM
Hello James,

I need a little help about TTS, in special multilanguage command, look this picture, title song and artist name is trunked, appears ?? where special characters
This Image use command XBMC.MediaChanged.AudioTitle
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2FXBMC.MediaChanged.AudioTitle.jpg&hash=67df34b832e1dbb6b1b3617c3ff2d934284216b6)
look this problem don´t appears, using the command What´s music is this, the name of song apears with special charaters, How I fix this situation, please...
TTE in this command appear this way in history command
Song title: Esperanças perdidas = here appears Esperan??as Perdidas
Artist: Sambô - here appears Samb??

This image use command What song is this, the name of song (title) appear ok...using tts voice
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2Fwhat_song_is_this.jpg&hash=2e00146bb17e3ffd17cc51fa29818d259870000c)
Same Song, title ok = Esperanças Perdidas

Send my commands, attached file.

thanks

Wanilton
Title: Re: Solicitações
Post by: Kalle on June 20, 2011, 05:48:40 AM
Hello James,

I need a little help about TTS, in special multilanguage command, look this picture, title song and artist name is trunked, appears ?? where special characters
This Image use command XBMC.MediaChanged.AudioTitle
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2FXBMC.MediaChanged.AudioTitle.jpg&hash=67df34b832e1dbb6b1b3617c3ff2d934284216b6)
look this problem don´t appears, using the command What´s music is this, the name of song apears with special charaters, How I fix this situation, please...
TTE in this command appear this way in history command
Song title: Esperanças perdidas = here appears Esperan??as Perdidas
Artist: Sambô - here appears Samb??

This image use command What song is this, the name of song (title) appear ok...using tts voice
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fgithub.com%2Fdownloads%2FWanilton%2FVoxCommando%2Fwhat_song_is_this.jpg&hash=2e00146bb17e3ffd17cc51fa29818d259870000c)
Same Song, title ok = Esperanças Perdidas

Send my commands, attached file.

thanks

Wanilton
Hi Wanilton,
are you sure that the "IF" command is written right? For me it looks like this (see picture)
IF -> (A)Contains(B) -> (LastResult)Contains(what you like)
I use this only for MM

Kalle
Title: Re: Solicitações
Post by: Wanilton on June 20, 2011, 09:31:50 AM
Kalle,


My Trouble is with special signs (~,^, ´. `) in title song and artist name, using my command work fine with apropriate language TTS, but
the special signs ~, ^ are replace for ??, and tts sound strange of course, reading this ??, no sense...using What song or What artist, the name
of artist or title song with special signs, are ok, don´t replace with ~ for ?? save my 2 images and compare in history command for view
difference in TTS contains ?? and other sentence contain special signs e tts work ok, WHY?

Example using my actual command XBMC. MeidaChanged.AudioTitle, the 2 variables appears this way:

Song Title:  Esperan??as Perdidas (ç replaced with ??)
Artist Name: Samb?? (ô replaced with ??)

The problem is not with TTS, but with the content appears for reading..

Command What Song is it: the song title apperars ok: Esperanças Perdidas, and Artist Name, appears Sambô, words ok,  tts reading with perfection,
the special signs.

I will try your tip...

Wanilton



Title: Re: Solicitações
Post by: Wanilton on June 20, 2011, 09:58:52 AM
Solved this trouble, using {match.5} and {match.7), work ok now...I replace {1} for {match.5} and {2} for {match.7}, now working ok.

Wanilton
Title: Re: Solicitações
Post by: Kalle on June 20, 2011, 10:09:11 AM
Solved this trouble, using {match.5} and {match.7), work ok now...I replace {1} for {match.5} and {2} for {match.7}, now working ok.

Wanilton
Congratulations that you've figured it out
Is there any possibility for xbmc to use the ID tag, as in MM (Custom 1, Custom 2, etc. ..), then you will not need any extra folders

your voicecommand.xml is very, very big, can you remember all the commands?  :D

Kalle
Title: Re: Solicitações
Post by: jitterjames on June 20, 2011, 10:57:59 AM
I am sorry didn't get back to you on this question.  I am at a friends house in the "big" city.  I am glad you figured it out though because I was not able to understand the problem. :)
Title: Re: Solicitações
Post by: jitterjames on June 20, 2011, 11:07:26 AM
Kalle: This is ALL the information returned from xbmc for now playing:
Code: [Select]
<html>
<li>Filename:musicdb://2/2/2/36802.mp3
<li>PlayStatus:Playing
<li>SongNo:0
<li>Type:Audio
<li>Title:All I Need
<li>Track:3
<li>Artist:Air
<li>Album:Moon Safari
<li>Genre:Electronic
<li>Year:1998
<li>URL:D:\mp3\Air\Moon Safari\Air - All I Need (feat. Beth Hirsch).mp3
<li>Lyrics:
<li>Bitrate:192
<li>Samplerate:44
<li>Thumb:special://masterprofile/Thumbnails/Music/7/7454582a.tbn
<li>Time:03:43
<li>Duration:04:27
<li>Percentage:83
<li>File size:6423967
<li>Changed:False
</html>

Title: Re: Solicitações
Post by: Wanilton on June 20, 2011, 11:18:18 AM
The trouble it´s solved, but for others users, i try explain in my native language, use google translate..

Em títulos de músicas, e nome de artistas, que possuam caracteres especiais como ~, ^, `,` usando {1} ou {2} na estrutura do comando, faz com que estes caracteres mencionados não sejam reconhecidos corretamente e passem a mostrar ?? para denotar o caracter correto, então ao não apresentar o nome correto da músiva e do nome do artista, o TTS falha na leitura. Se usar títulos de músicas e nome de artistas que não possuam tais caracteres, a leitura se dá de forma normal, sem erros, o erro só ocorre com palavras acentuadas.

Ao alterar {1} para {match.5} o nome da música, mesmo que contenham tais caracteres passam a ser mostrados e falados corretamente pelo tts, exemplo:
Esperanças Perdidas, antes usando {1} aparecia assim Esperan??as Perdidas, ao passar para {match.5} passou a mostrar e ler corretamente: Esperanças perdidas
que é o nome correto da música.

Espero que agora compreenda, por alguma razão que não me é compreensível, ocorre uma truncagem nas palavras com caracteres como ~, ^, ´, ` passando
a mostrar ?? no lugar dos acentos, quando uso {1} para título da música, e {2} para nome de artista, no caso do nome do artista Sambô, ficava assim: Samb??,
o que era lido Samb pelo TTS...

Este ?? no meio de uma palavra acrescentava um delay de tempo na leitura, e impedia a pronúncia correta da palavra.

Então eu percebi que em outros comandos, com uso de TTS, este erro não existia, fiquei me questionando qual era a diferença, o now playing, carrega errado
o nome da música se usar {1}...

Wanilton
Title: Re: Solicitações
Post by: jitterjames on June 20, 2011, 11:25:44 AM
if I understand correctly, it looks like the problem is with the event payloads...  I will look into it when I get home.
Title: Re: Solicitações
Post by: Kalle on June 20, 2011, 12:40:53 PM
Kalle: This is ALL the information returned from xbmc for now playing:
Code: [Select]
<html>
<li>Filename:musicdb://2/2/2/36802.mp3
<li>PlayStatus:Playing
<li>SongNo:0
<li>Type:Audio
<li>Title:All I Need
<li>Track:3
<li>Artist:Air
<li>Album:Moon Safari
<li>Genre:Electronic
<li>Year:1998
<li>URL:D:\mp3\Air\Moon Safari\Air - All I Need (feat. Beth Hirsch).mp3
<li>Lyrics:
<li>Bitrate:192
<li>Samplerate:44
<li>Thumb:special://masterprofile/Thumbnails/Music/7/7454582a.tbn
<li>Time:03:43
<li>Duration:04:27
<li>Percentage:83
<li>File size:6423967
<li>Changed:False
</html>

Hi James,
it looks good, we can use Lyrics or Samplerate for insert the language  ;D

Wanilton, you can edit with MediaMonkey the lyricstag and insert "english, italian or what ever language for song" and then use this parameter in the logic command. You must never sort your music in extra folders.
Title: Re: Solicitações
Post by: jitterjames on June 20, 2011, 01:11:28 PM
you could probably use lyrics (assuming that you don't already use lyrics), but I think bit rate and sample rate depend on the way the song is encoded and are not something we can modify.
Title: Re: Solicitações
Post by: Wanilton on August 09, 2011, 12:27:34 PM
Hello James, i try using now field Lyrics...ok info in this field
Look
Filename:musicdb://3/611/9209.mp3
PlayStatus:Playing
SongNo:0
Type:Audio
Title:Made up My Mind
Track:1
Artist:Savoy Brown
Album:A Step Further
Genre:Blues Rock
Year:1969
URL:D:\Shared Music\Savoy Brown\A Step Further (1969)\01 - Made Up My Mind.mp3
Lyrics:InglesUS
Bitrate:193
Samplerate:44
Thumb:special://masterprofile/Thumbnails/Music/f/ffbc9937.tbn
Time:00:14
Duration:03:07
Percentage:7
File size:4723992
Changed:False

But i have error syntax

using
(A)Contains(B)
({LastResult})Contains(InglesUS)

How I solve this?

thanks
Title: Re: Solicitações
Post by: jitterjames on August 09, 2011, 12:32:44 PM

But i have error syntax

using
(A)Contains(B)
({LastResult})Contains(InglesUS)

How I solve this?

thanks

what is the error?

instead of :

({LastResult})Contains(InglesUS)

try

{LastResult}&&InglesUS
Title: Re: Solicitações
Post by: Wanilton on August 09, 2011, 12:51:12 PM
Work great, thanks James;;
Title: Re: Solicitações
Post by: Wanilton on August 09, 2011, 01:27:38 PM
James,

I need a little help in this topic XBMC Forum, my english is not good for try explain to developer about get via JSON one tag field for language, read my post and answear.

http://forum.xbmc.org/showpost.php?p=858486&postcount=1154

Do you try explain with more details, for try get this in future version JSON.

Thanks again...
Title: Re: Solicitações
Post by: jitterjames on August 09, 2011, 02:23:55 PM
what feature are you asking them for:

1 ) to add a language field in xbmc

2 ) to have a command where you can ask for any field from currently playing instead of getting all the information at once.

?
Title: Re: Solicitações
Post by: Wanilton on August 09, 2011, 03:45:19 PM
I Think one field in XBMC, this is necessary I think for use custom tag...
Em pt br

Eu penso que eles poderiam acrescentar este campo, e ter algum comando quando da implementação do JSON, que possamos usar para recuperar a informação da linguagem daquela faixa musical, similar ao que existe hoje
usando lyrics, que não é um campo apropriado para este tipo de situação, claro que o campo lyrics serve como uma solução alternativa.
O Problema é que nenhum programa de tag tem um campo de linguagem, então eu pensei eles poderiam criar um campo genérico, que aceite textos e números, para que possa ser usado para esta finalidade,
basicamente esta é a ideia. A Maioria dos programas de tags, permite criar tags customizadas, 5 no caso do media monkey, a ideia é similar...

Thanks

Wanilton
Title: Re: Solicitações
Post by: Wanilton on September 17, 2011, 06:03:58 PM
James, in this last version vox, i have a bug in command builder, the voxcommando not save the variable value in structure if else, check this please...
I put the value EnglishUS, Spanish, and saved, but this contais nothing in the field, when i return to check, the values don´t appears where I put
the value...
Title: Re: Solicitações
Post by: jitterjames on September 17, 2011, 06:20:20 PM
yes, thanks.  I will post a fix.

but why are you posting in this topic?
Title: Re: Solicitações
Post by: jitterjames on September 17, 2011, 06:29:31 PM
OK, I understand...
Title: Re: Solicitações
Post by: jitterjames on September 17, 2011, 09:07:40 PM
bug should be fixed in 0.903:

http://voxcommando.com/forum/index.php?topic=590.msg4195#msg4195
Title: Re: Solicitações
Post by: mrxeon on April 10, 2012, 12:40:54 PM
Ola Wanilton, gostaria de saber como faço para abrir o programa voxcommando em modo stand-by e deixar marcado a caixa sempre em stand-by apos comando simples.
pois eu fiz um atalho para abrir minimizado mas ele ja fica na tela verde, eu sei que atraves do comando stand-by ele fica amarelo, mas quase sempre esqueço disso e é um saco pois ele fica enviando comando para o meu htpc..
Obrigado...
Title: Re: Solicitações
Post by: jitterjames on April 10, 2012, 12:47:36 PM
There are two way to have VoxCommando startup in Standby mode.

Using Events:
If you want Vox to always start in standby mode, you can add the VC.Loaded event to the standby command.  This event is generated when VC finishes loading and you can just drag it from the history window (main VC window) onto the standby command (in the command editor tree).  Or you can add it manually, as you would a new phrase etc.

Using a Command Line Parameter:
you can start VC with the command line parameter -standby but this is not possible when using "start with windows" in the options menu.  To do this you would have to create your own startup item.  Put a shortcut into: "Start > All Programs > Startup" and use the command line parameter there.
Title: Re: Solicitações
Post by: mrxeon on April 11, 2012, 11:39:32 AM
Obrigado James por sua atenção.
Eu consegui fazer.
James, eu uso o mic eye ps3, por orientação do Wanilton, ele acha melhor deixar sempre o voxcommando em standby. Bom o que esta acontecendo é que algumas vezes o voxcommando funciona sem eu dizer o prefix ex: vox, aumentei o required prefix confidence para 85. vou realizar mais teste.. ontem estava assistindo um filme e ele executou um comando de zoom mesmo estando em standby. eu não falei nada, só estava a voz do filme(ingles) mais nada.
Eu posso adicionar em VC.Loaded para o voxcommando acionar o comando "when checked Vox will return to Standby after a single command ???"
Obrigado...
Title: Re: Solicitações
Post by: jitterjames on April 11, 2012, 02:20:26 PM
1) If VC is executing commands even when you are sure that you are in standby mode, then you need to change your prefix, or increase the required prefix confidence.

2) If you want VC to return to standby automatically you can set this in Options.  Look at the attached image:

It is very difficult to use VC with only voice when you are watching movies, listening to music etc.  It is more reliable to at least use a remote control button to turn VC on and off.  With the amulet remote this is done automatically when we lift the remote (on) and put the remote back down (off).
Title: Re: Solicitações
Post by: mrxeon on April 13, 2012, 01:32:00 PM
Entendi, obrigado pel ajuda, Jammes.
Title: Re: Solicitações
Post by: mrxeon on May 06, 2012, 12:29:56 PM
Ola a todos, voxcommando consegue alterar as propriedades de volume do microfone do eye ps3??
Eu tenho o microfone eye ps3 instalado, o som que o voxcommando esta captando é muito baixo, e nas propriedades do windows não consigo aumentar o boost mic.
Eu gostaria de aumentar a sensibilidade do microfone como faz o skype.. isso é possivel??
Obrigado...
Title: Re: Solicitações
Post by: jitterjames on May 06, 2012, 07:59:40 PM
I don't think you can increase the input volume level of the ps3eye at all on windows.  You cannot in VoxCommando that is certain.  If Skype is letting you set the volume level of the ps3eye it is probably only letting you reduce it.  If you want to increase the input volume of the ps3eye you are better to ask "codelaboratories"
Title: Re: Solicitações
Post by: Wanilton on July 24, 2012, 10:34:36 AM
Hi James,  new challenge, I want to hear a message TTS or Osd message every song I add an audio playlist in XBMC, you have to do this via voxcommando for me?
It´s possible?

Thanks

Wanilton

Title: Re: Solicitações
Post by: jitterjames on July 24, 2012, 02:11:42 PM
Hi James,  new challenge, I want to hear a message TTS or Osd message every song I add an audio playlist in XBMC, you have to do this via voxcommando for me?
It´s possible?

Thanks

Wanilton

Novo! Segure a tecla Shift pressionada, clique e arraste as palavras acima para reorganizar. Dispensar

How are they being added?  XBMC does not generate any events when this happens as far as I know, so I'm not sure how you could do it.