Hi all,
I’m using an Automator Service to make an audio file from clipboard text - similar to:
http://automator.us/leopard/examples/ex07/index.html
However, each paragraph in the text is punctuated by this symbol: ¤
I was wondering whether there is any way to generate a sound effect in Text-To-Speech each time this symbol ¤ is read?
Either if there’s a way to set that symbol as an alert beep, or if Applescript can be used to search for those symbols and insert a sound effect into the audio?
The main aim is to have a recognisable sound that After Effects can then set markers to later on.
Cheers,
Dave
Add this into the script you are using…
-- find : Text to be found
-- replace : Text to replace with
-- someText : Text to be searched
on replaceText(find, replace, someText)
set prevTIDs to text item delimiters of AppleScript
set text item delimiters of AppleScript to find
set someText to text items of someText
set text item delimiters of AppleScript to replace
set someText to "" & someText
set text item delimiters of AppleScript to prevTIDs
return someText
end replaceText
The Speech syntax for changing the tone and inflection is done by letter…
Example: “Are you sure you brushed your teeth?”
See : http://www.mattmontag.com/personal/mac-os-x-speech-synthesis-markup
[[inpt TUNE]]
~
AA {D 120; P 176.9:0 171.4:22 161.7:61}
r {D 60; P 166.7:0}
~
y {D 210; P 161.0:0}
UW {D 70; P 178.5:0}
_
S {D 290; P 173.3:0 178.2:8 184.9:19 222.9:81}
1AX {D 280; P 234.5:0 246.1:39}
r {D 170; P 264.2:0}
~
y {D 200; P 276.9:0 274.9:17 271.0:50}
UW {D 40; P 265.0:0 264.3:50}
_
b {D 140; P 263.6:0 263.5:13 263.3:60}
r {D 110; P 263.1:0 260.4:43}
1UX {D 30; P 256.8:0 256.8:6}
S {D 190; P 256.1:0}
t {D 20; P 252.0:0 253.6:47}
~
y {D 30; P 255.5:0 257.8:45}
AO {D 40; P 260.6:0 260.0:56}
r {D 40; P 259.5:0}
_
t {D 190; P 251.3:0 250.0:16 245.9:68}
1IY {D 260; P 243.4:0 248.1:8 286.1:72 288.5:84}
T {D 220; P 291.6:0 262.8:27 220.0:67 184.8:100}
? {D 300}
[[inpt TEXT]]