New Script: Speak Song Title

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

Meander

Re: New Script: Speak Song Title

Post by Meander »

Andreas,

Your idea looks good, as you've already allowed for ten presets. So first phase might be to implement the script 'stepping' to the next (individually customised) mask between announcements - which would be great. A checkbox to enable/disable it would be good too. The random method could follow that if you think it practical.

BTW I have sapi4 (via the L&H TTS 3000 engine), as well as 5, on my machine. The voices for these are more easily obtained and are freely available. Some of the characters aren't too bad even though in a lower bitrate. Can you access those in the script?
Meander

Re: New Script: Speak Song Title

Post by Meander »

Just to add.

In pursuit of more natural voices and alternative engines, I came across Festival.

It's written for Unix based systems, but can be run in windows with the aid of Cygwin.

Judging by the Technical Online demo, which can be accessed here...

http://www.cstr.ed.ac.uk/projects/festi ... oices.html

...it produces very natural character, with additional resources for creating and honing voices too.

Promising.
bailso
Posts: 52
Joined: Sat Feb 02, 2008 12:24 am
Location: Sydney, Australia

Re: New Script: Speak Song Title

Post by bailso »

I was able to download this addon. I use the ASIO output plugin which seems to stall when the Speak Song title is enabled.

Should the addon be compatible with ASIO and WASAPI (which I have also tried)? I only seem to be having success with Directsound.

Thanks
Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: New Script: Speak Song Title

Post by Andreas Weichert »

bailso wrote:I was able to download this addon. I use the ASIO output plugin which seems to stall when the Speak Song title is enabled.

Should the addon be compatible with ASIO and WASAPI (which I have also tried)? I only seem to be having success with Directsound.

Thanks
What do you mean with stall, what happens.
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.
bailso
Posts: 52
Joined: Sat Feb 02, 2008 12:24 am
Location: Sydney, Australia

Re: New Script: Speak Song Title

Post by bailso »

Thanks for your quick response.

With ASIO and WASAPI I hear the announcement but the track does not play. No such problem with DirectSound.
Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: New Script: Speak Song Title

Post by Andreas Weichert »

Meander wrote:Andreas,

Your idea looks good, as you've already allowed for ten presets. So first phase might be to implement the script 'stepping' to the next (individually customised) mask between announcements - which would be great. A checkbox to enable/disable it would be good too. The random method could follow that if you think it practical.

BTW I have sapi4 (via the L&H TTS 3000 engine), as well as 5, on my machine. The voices for these are more easily obtained and are freely available. Some of the characters aren't too bad even though in a lower bitrate. Can you access those in the script?
I uploaded a new version.
With it you can edit multiple phrases in one entry. Separate them by "|" in the text.
Text1 | Text 2 | Text 3
Via random genrator one of the three will been taken. You can test it in its settings page too.
Simple press the test button and you will hear one of it.

About other voices I dont know much. My plugin demands all voices via SAPI interface and lists it. It should show all integrated from the windows system.
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.
Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: New Script: Speak Song Title

Post by Andreas Weichert »

bailso wrote:Thanks for your quick response.

With ASIO and WASAPI I hear the announcement but the track does not play. No such problem with DirectSound.
Make a double-click on a track in the now-playing-list.
You hear the speech but at the end of the speaking the song does not start ?

Please disable "Pause song during speaking" ! What happens then ?
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.
Meander
Posts: 67
Joined: Fri Jun 06, 2014 8:45 am

Re: New Script: Speak Song Title

Post by Meander »

@ Andreas

Just spotted your update and testing it now. The random 'mix' of intros is working well.

For some reason the next track would start (very briefly) and then pause for the intro. But it sorted itself out after unchecking and rechecking the odd setting.

One observation: I had to copy the whole of each mask (plus separators) that I wanted to use into the Multi Test option. Is there a shorthand way of entering the mask references?

Thanks for the addition. :)
Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: New Script: Speak Song Title

Post by Andreas Weichert »

Meander wrote:@ Andreas

Just spotted your update and testing it now. The random 'mix' of intros is working well.

For some reason the next track would start (very briefly) and then pause for the intro. But it sorted itself out after unchecking and rechecking the odd setting.

One observation: I had to copy the whole of each mask (plus separators) that I wanted to use into the Multi Test option. Is there a shorthand way of entering the mask references?

Thanks for the addition. :)
Fine that the random mix pleasures you.

I have connect the song start event from MM with my code. There is no other way.
If I get this event I pause the song (if you have enabled "pause song during speaking") and wait for the end of the speech. Then I disable the pause.
So if the computer resp. MM has not time to process the event instantly the song will be played for a short time.

What do you mean with entering the mask reference? The setting are storend in the MediaMonekey.ini
You can close MM, edit the ini-file and restart MM. Here an example

[SpeakSongTitle]
Enabled=1
StartSpeak=$title$ from $artist$ of album $album$ at year $year$
UnknownText=unknown
LangNr=1
Version=1
WithPlayPause=1
Rate=-3
Volume=100
ActiveMaskNr=2
StartSpeak_0_Name=Title with rating
StartSpeak_0_Mask=$rating$ stars for $title$|two|tree|four
StartSpeak_1_Name=Title with artist and album with pauses
StartSpeak_1_Mask=$title$ $P5$ $rating$ stars $P5$ from $artist$ $P5$ of album $album$
StartSpeak_2_Name=MultiTest
StartSpeak_2_Mask=one|two|tree|four
StartSpeak_3_Name=
StartSpeak_3_Mask=
StartSpeak_4_Name=
StartSpeak_4_Mask=
StartSpeak_5_Name=
StartSpeak_5_Mask=
StartSpeak_6_Name=
StartSpeak_6_Mask=
StartSpeak_7_Name=
StartSpeak_7_Mask=
StartSpeak_8_Name=
StartSpeak_8_Mask=
StartSpeak_9_Name=
StartSpeak_9_Mask=
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.
proplane64

Re: New Script: Speak Song Title

Post by proplane64 »

Does this still work? Getting VBS errors
superluig164
Posts: 22
Joined: Thu Jul 30, 2015 6:32 am

Pronunciation

Post by superluig164 »

Do you think you could add some way to change pronunciation of some words, so for example if your program detects "R3hab" it would instead send "Rehab" to the TTS engine so that it pronounces the name correctly? I find that some of my artists don't pronounce correctly with Microsoft's TTS engine, for example it pronounces Mr. Fijiwiji as "Mr. Feejeeweyejeye."

Thank you!
superluig164
Posts: 22
Joined: Thu Jul 30, 2015 6:32 am

Lower volume instead of pause

Post by superluig164 »

Could you also add an option to lower the volume while speaking? I think that would sound really nice, especially when using MediaMonkey to play music out loud.

Thanks again!
carkey151
Posts: 24
Joined: Fri Jan 22, 2010 9:14 am

Re: New Script: Speak Song Title

Post by carkey151 »

Is there a way to use the field "Original Date (Original Year)" instead of Year, or to add the "Custom 1" field?
Post Reply