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: 8237" data-attributes="member: 10541"><p>Ok guys, following my post to the Alarm V2 plugin I thought I might as well also try to implent this.</p><p></p><p>So, I got the basic code to speak a TextInput working, but it is not integrated with Mediaportal. I took a look into the CSV but to be honest, this is a bit too much for me small student-programmer. So if someone could help me getting this into MP that would be great.</p><p></p><p>So heres what I thought, we create the Plugin once, and then every other plugin can use it to say specific things. So a method within MP that would say</p><p>sayText(string input) .....</p><p></p><p>would be the way to go.</p><p></p><p>Now, inside that text we can have tags, such as <user>, <time>, <temperature> etc. which will then of course be replaced by their values.</p><p></p><p>Example of an input text:</p><p></p><p>"Good afternoon <name>, the time is <time>. Have fun with MediaPortal".</p><p></p><p>Very easy, but I have no Idea how to get these values from MediaPortal. Name for instance isnt even set in the Config yet. Time of course I can read out, same for date, but with MP specific tags im having trouble (tbh I dont really dare touch the source code).</p><p></p><p>So, what I have done for now is something like this:</p><p>input = input.Replace("<name>",getUsername());</p><p></p><p>meaning the Method to get these tags will have to be written later on.</p><p> Works fine, but of course it fakes the return of the getter Methods.</p><p></p><p>So........what does that mean..........I guess I need some help........is there even demand for this stuff? One perfect use would be that the system tells you things when the alarm goes off (see page three of the Alarm V3 Thread for my thoughts), or it could tell you when it starts recording, or it can read the news for you, or tell you about the weather while your watching TV/listening to music. Stuff like that. For the last instance it would be cool if the sound of Video/TV/Music would slightley fade out while MP is "talking".</p><p></p><p>Ok, I'm guessing the post will get too long, let me know what you think</p><p></p><p>Here is a small sample of what this could sound like (for an alarm with beeping and background music).</p><p><a href="http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma" target="_blank">http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma</a></p></blockquote><p></p>
[QUOTE="Inker, post: 8237, member: 10541"] Ok guys, following my post to the Alarm V2 plugin I thought I might as well also try to implent this. So, I got the basic code to speak a TextInput working, but it is not integrated with Mediaportal. I took a look into the CSV but to be honest, this is a bit too much for me small student-programmer. So if someone could help me getting this into MP that would be great. So heres what I thought, we create the Plugin once, and then every other plugin can use it to say specific things. So a method within MP that would say sayText(string input) ..... would be the way to go. Now, inside that text we can have tags, such as <user>, <time>, <temperature> etc. which will then of course be replaced by their values. Example of an input text: "Good afternoon <name>, the time is <time>. Have fun with MediaPortal". Very easy, but I have no Idea how to get these values from MediaPortal. Name for instance isnt even set in the Config yet. Time of course I can read out, same for date, but with MP specific tags im having trouble (tbh I dont really dare touch the source code). So, what I have done for now is something like this: input = input.Replace("<name>",getUsername()); meaning the Method to get these tags will have to be written later on. Works fine, but of course it fakes the return of the getter Methods. So........what does that mean..........I guess I need some help........is there even demand for this stuff? One perfect use would be that the system tells you things when the alarm goes off (see page three of the Alarm V3 Thread for my thoughts), or it could tell you when it starts recording, or it can read the news for you, or tell you about the weather while your watching TV/listening to music. Stuff like that. For the last instance it would be cool if the sound of Video/TV/Music would slightley fade out while MP is "talking". Ok, I'm guessing the post will get too long, let me know what you think Here is a small sample of what this could sound like (for an alarm with beeping and background music). [url]http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma[/url] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Text to Speech.......Make MediaPortal Talk
Contact us
RSS
Top
Bottom