- December 6, 2004
- 2,055
- 318
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).
http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma
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).
http://www.geocities.com/nummer1_98/78nummer/Inker/public/share/morning_mixed.wma