Author Topic: Solicitações  (Read 49564 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 #90 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!

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #91 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
« Last Edit: April 16, 2011, 11:05:31 AM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #92 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. :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #93 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.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #94 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
« Last Edit: April 16, 2011, 03:12:08 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #95 on: April 16, 2011, 03:12:45 PM »
James, more One Command - look this is ok?
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 #96 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.

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #97 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

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

Same Song, title ok = Esperanças Perdidas

Send my commands, attached file.

thanks

Wanilton
« Last Edit: June 19, 2011, 06:03:18 PM by Wanilton »
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Solicitações
« Reply #98 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

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

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
***********  get excited and make things  **********

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #99 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



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 #100 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
www.xbmcbrasil.net
XBMC  Brazilian Community Forum - Admin
Windows 8.1 - XBMC Gotham Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Solicitações
« Reply #101 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
« Last Edit: June 20, 2011, 10:15:18 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #102 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. :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Solicitações
« Reply #103 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>


Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #104 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
« Last Edit: June 20, 2011, 11:34:11 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