Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Speech with python variable?

If you have a question or need help, this is the place to be.
Post Reply
Eli
Posts: 3
Joined: Mon Oct 20, 2008 12:54 am

Speech with python variable?

Post by Eli »

I'm trying to make Sam say the current shuffle status,
I've captured the data with

Code: Select all

eg.globals.shuffleStatus = eg.plugins.Winamp.GetShuffleStatus()
and I'm getting 1 or 0 (depending on the status).

I'm trying to make the text-to-speech to say this:

Code: Select all

Shuffle {("Off","On")[int(eg.globals.shuffleStatus)]}
but it does not work, it just says "shuffle".

Any ideas?
Thanks!
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Speech with python variable?

Post by Bitmonster »

Yes, it's a bug. => 0.3.6.1481
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
stisev
Experienced User
Posts: 162
Joined: Tue Jun 26, 2007 2:55 am

Re: Speech with python variable?

Post by stisev »

oooo eli,

Can you post your EG XML script for how you're achieving this? I would love to toy around with text to speech & EG :D
CollinR
Experienced User
Posts: 265
Joined: Tue Sep 05, 2006 7:16 am
Location: Oklahoma
Contact:

Re: Speech with python variable?

Post by CollinR »

Also you guys might consider MIT's start search.

You should be able to scrape dynamic results from it.

http://start.csail.mit.edu/
Who is Bitmonster?
returns just 1 result (as always!).
Sorry, I just don't know who Bitmonster is.
This is the source of the result page.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>START's reply</TITLE>
<META HTTP-EQUIV="content-type"  CONTENT="text/html;charset=UTF-8">
<style type="text/css">
img {max-width:100%;}
</style></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#000080" ALINK="#000080">
<H1 ALIGN="LEFT">START's reply</H1>
<P><img src="http://start.csail.mit.edu/images/line-rainbow.gif" width=100% height=3></P>
<P>
===> who is bitmonster?
<!-- REPLY-QUALITY: DONT-KNOW-->
<P>Sorry, I just don't know <span type="gen" args-p=T>
  who Bitmonster is.</span>
<P><BR CLEAR="ALL"><img src="http://start.csail.mit.edu/images/icons/lines/line-rain.gif" width=100% height=3></P>
<UL>
<LI><A HREF="http://start.csail.mit.edu/">Go back to the START dialog window.</A></LI>
</UL>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3387059-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</BODY>
</HTML>
Might have some real possiblities if combined with some speech recognition.
Post Reply