home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Text to Speech.......Make MediaPortal Talk
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Inker" data-source="post: 8242" data-attributes="member: 10541"><p>Heres what I have so far:</p><p></p><p>private void sayText(string input)</p><p> {</p><p> /*</p><p> * This method will say whatever Text is parsed to it, using the default SAPI 5 voice (please select in ur Windows Settings)</p><p> * There are a few special tags which the plugin can use within the string. These tags will then be replaced with a value.</p><p> * For the moment the tags are:</p><p> * <name> is replaced with the username, example: "Steven"</p><p> * <time> is replaced with the current time in the following format: 15:31</p><p> * <date> is replaced with the current date in the following format: 12.01.2005</p><p> * <currTemp> is replaced with the current temperature, format: 10 degrees</p><p> * <currCond> is replaced with general weather conditions, example: Sunny</p><p> * <forecastTemp> is replaced with the next forecast Temperatures, format: 10 degrees</p><p> * <forecastCond> is replaced with the next forecast conditions, example: overcast</p><p> * <newsource> is replaced with the selected source for news, example: CNN</p><p> * <news:NumberOfHeadliensToRead> is replaced with with a string of news from the selected newssource covering the number of last headlines specified here</p><p> * example usage: <news:5> will get the last 5 news headlines</p><p> * <noRecordings> is replaced with the number of scheduled recordings today</p><p> * <schRecordings> is replaced with the title of the scheduled recordings for today, example: Friends, Simpsons, Seinfeld</p><p> * </p><p> * this is open for future additions of course</p><p> */</p><p></p><p><em>Implementation of the SPEECH! part here</em></p><p>}</p><p></p><p>So this is the method I have, works fine. When it encounters any of the tags above the method will also call the appropriate method (see below) to replace the tag with an actualy value (exceptions are time/date which it gets directly from the system).</p><p>The following method will still need to be implented, I need big help here though, maybe a developer could help me out?</p><p></p><p>private string getUsername()</p><p>private string getCurrTemp()</p><p>private string getCurrCond()</p><p>private string getForecastTemp()</p><p>private string getForecastCond()</p><p>private string getNewsSource()</p><p>private string getNews(int NumberOfHeadlines)</p><p>private string getNoSchRecordings()</p><p>private string getSchRecordings()</p><p></p><p>The speech part works fine, so you can have it say something nice already <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> </p><p></p><p>Now I just need to find out how to get it as a public method into MP....</p></blockquote><p></p>
[QUOTE="Inker, post: 8242, member: 10541"] Heres what I have so far: private void sayText(string input) { /* * This method will say whatever Text is parsed to it, using the default SAPI 5 voice (please select in ur Windows Settings) * There are a few special tags which the plugin can use within the string. These tags will then be replaced with a value. * For the moment the tags are: * <name> is replaced with the username, example: "Steven" * <time> is replaced with the current time in the following format: 15:31 * <date> is replaced with the current date in the following format: 12.01.2005 * <currTemp> is replaced with the current temperature, format: 10 degrees * <currCond> is replaced with general weather conditions, example: Sunny * <forecastTemp> is replaced with the next forecast Temperatures, format: 10 degrees * <forecastCond> is replaced with the next forecast conditions, example: overcast * <newsource> is replaced with the selected source for news, example: CNN * <news:NumberOfHeadliensToRead> is replaced with with a string of news from the selected newssource covering the number of last headlines specified here * example usage: <news:5> will get the last 5 news headlines * <noRecordings> is replaced with the number of scheduled recordings today * <schRecordings> is replaced with the title of the scheduled recordings for today, example: Friends, Simpsons, Seinfeld * * this is open for future additions of course */ [i]Implementation of the SPEECH! part here[/i] } So this is the method I have, works fine. When it encounters any of the tags above the method will also call the appropriate method (see below) to replace the tag with an actualy value (exceptions are time/date which it gets directly from the system). The following method will still need to be implented, I need big help here though, maybe a developer could help me out? private string getUsername() private string getCurrTemp() private string getCurrCond() private string getForecastTemp() private string getForecastCond() private string getNewsSource() private string getNews(int NumberOfHeadlines) private string getNoSchRecordings() private string getSchRecordings() The speech part works fine, so you can have it say something nice already :-) Now I just need to find out how to get it as a public method into MP.... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Text to Speech.......Make MediaPortal Talk
Contact us
RSS
Top
Bottom