Author Topic: Solicitações  (Read 50084 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 #75 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

Wanilton

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

Wanilton

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

jitterjames

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

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #81 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.
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 #82 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...
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 #83 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
***********  get excited and make things  **********

jitterjames

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

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Solicitações
« Reply #85 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!!!
***********  get excited and make things  **********

jitterjames

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

Wanilton

  • Moderator
  • Hero Member
  • *****
  • Posts: 559
  • Karma: 6
    • View Profile
    • XBMC Brazil Forum
Re: Solicitações
« Reply #87 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
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 #88 on: April 16, 2011, 12:11:17 AM »
yes, tomorrow.  sorry I forgot!  too busy with other things.

jitterjames

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