News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

Recently added by TTS?

Started by Adytum, March 01, 2012, 04:28:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adytum

Would this be feasible?
For example "what's new" could make the TTS read the titles of recently added episodes or movies.
Still pretty new to VC, but I imagine something involving regenerating the xbmc XML file and grabbing the recently added items for the TTS..  ???

jitterjames

I accept your challenge!

It should not be too difficult.  We don't need to use genXML but we will use similar calls to the ones used in genXML.  Let me play with it a bit.

jitterjames

try these for starters

bp_pbs

Hey,

Question...So I changes the OSD to TTS.SpeakSync....How can I get it to Pause 2 or 3 seconds after every Result, so it want sound too jumbled up?


jitterjames

on the action:

Results.MatchConcat   {CR}

Change the parameter {CR} which is inserting a carriage-return (new line) between each match.  Instead of {CR} use  , (comma) for a short pause or . (period) for a longer pause.

example:

Results.MatchConcat   .

bp_pbs

Cool. For some reason the . (period) didn't work for me but the comma did.

Thanks for the help

jamesst

I am wondering, would the same be possible for MediaPortal, movies and TvSeries? It is a cool feature.

Thanks

jitterjames


Adytum

Thanks again, James, this is brilliant!

VC has completely changed my routine when I get home from work, I just walk in the living room and say "rock me, computer", it opens a custom spotify radio within xbmc and starts playing. Now I'll also be asking what's new!

Quick side question: Does windows speech recognition training affect VC even when the WSPR program is not running?


jitterjames

Yes.  And vice versa.  That is, if you enable learn mode in VC it will affect WSR.

If you get around to it, maybe you can make some kind of guide for VC/XBMC/Spotify

rablack97

I like this command.

I find having the OSD and the TTS for the results kinda cool.

Same here on that period instead of the carriage return, doesn't work.

What i did find though, is if you can bear the period showing up after each title, you can use the below and get a longer pause for the TTS and the Carriage return on the OSD.

thesystemera

Movies one seems to work fine but for TV I just get "0 0 0 0 0" as a response, I've looked at the line and can not see any thing wrong with it....

jitterjames

Quote from: thesystemera on June 02, 2012, 06:04:32 AM
Movies one seems to work fine but for TV I just get "0 0 0 0 0" as a response, I've looked at the line and can not see any thing wrong with it....

No idea what you are talking about.

thesystemera

It announces Movies correctly, but when enquiring about recent tv shows.  I get the response that the latest TV shows are simply "0, 0, 0, 0, 0"   I am using a shared centralized SQLdatabase.  This causes issues with 'Random' having to be changed to 'Rand'.  Maybe a similar issue with other commands...???

Hope I have explained myself better..

jitterjames

Ah, you are referring to one of the commands in a group of xml commands that was in an attachment that I posted several months ago.  Sorry, I didn't know what you were talking about until I went through the whole thread, then downloaded the attachment and looked at the actual commands.  It is sometimes hard to keep track of all the threads.  At first I thought you had just come up with your own command, but I thought it odd that you would announce that it didn't work without telling us what you tried to do.

Anyway, I tested the command that I posted earlier and it works fine so I guess it may have something to do with your database setup, if it is not the standard XBMC setup.  Not much I can do about it though.

Most likely you need to look at this line and adapt it to work with your setup:

queryvideodatabase(select strTitle ||", "|| c00 from episodeview order by idEpisode desc limit 5)

I don't even remember what the || is for... maybe your SQL setup doesn't like it.  I think the || is probably a way of concatenating the two columns together with a comma between them.  So for a quick test you can try to get just the episode name like this:
queryvideodatabase(select strTitle from episodeview order by idEpisode desc limit 5)

and if that works, then we can try to figure out how to do concatenation using whatever sql setup you have.