Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Speak Text
#1
Hi is there away to turn the volume up in speak text? i mean just for the text in the code and nothing else. If so how Smile
#2
Yes. if you search for the speak function, it will give you all the parameters; i can't recall the exact syntax at the moment.
An old blog on QM coding and automation.

The Macro Hook
#3
Code:
Copy      Help
Speak "text" 0 "" 0 50 ;;50 is volume
#4
Hello just a quick question can someone tell me if there is a way to slow the Speak text down so it doesn't speak so fast?
#5
Yes, use negative rate, eg -5. Slowest will be -10. Default is 0.

Speak "speaking slowly" 0 "" -5
#6
More examples.

Function SpeakSelection.
Trigger CAs (Ctrl+Alt+S)
Code:
Copy      Help
if(getopt(nthreads)>1) key D; 0.3

AddTrayIcon "sound.ico"
int+ __speak_sel_info
str si=
;This function speaks selected text, one sentence at a time.
;Use these keys to control it:
;
;Left - repeat this sentence.
;Right - next sentence (in the selected text).
;Up - previous sentence.
;Down or other key - stop.

if(!__speak_sel_info) __speak_sel_info=1; mes si "" "i"

str s.getsel
if(!s.len) ret
ARRAY(str) a
tok s a -1 "[].;?!" ;;end-of-sentence characters
int i
for(i a.len-1 -1 -1) a[i].trim; if(!a[i].len) a.remove(i)
for i 0 a.len
,Speak a[i] 0 "" -1
,sel wait(0 KF)
,,case VK_RIGHT
,,case VK_LEFT i-1
,,case VK_UP i-iif(i 2 1)
,,case else SpeakStop; ret
,,

Function SpeakSelection2.
Trigger CSs (Ctrl+Shift+S)
Code:
Copy      Help
if(getopt(nthreads)>1) key U; 0.3

int+ __speak_sel_info2
str si=
;This function speaks selected text.
;Use these keys to control it:
;
;Left - repeat this sentence.
;Right - next sentence (in the selected text).
;Up - previous sentence.
;Down - pause/resume.
;Other keys (eg Ctrl) - stop.

if(!__speak_sel_info2) __speak_sel_info2=1; mes si "" "i"

str s.getsel
if(!s.len) ret
s.findreplace("..." ".")
int paused
Speak s 0 "" -1
rep
,sel wait(0 KF)
,,case VK_LEFT __spvoice.Skip("Sentence" 0); continue
,,case VK_RIGHT __spvoice.Skip("Sentence" 1); continue
,,case VK_UP __spvoice.Skip("Sentence" -1); continue
,,case VK_DOWN paused^1; if(paused) __spvoice.Pause; else __spvoice.Resume
,,case else SpeakStop; ret
#7
Looks like G.'s been having some fun :lol:
An old blog on QM coding and automation.

The Macro Hook
#8
Thanks for the help with the slowing speak down Gintaras and i see the two examples u posted on speaking sentences i'm really just learning and have no idea how to use them examples where do i put the text i want to speak does it have to be put in them examples or do i put it in another macro? hope i don't sound to silly asking but i say if u don't ask u don't learn :oops: thanks for ya help....
#9
In web browser or any other program select several sentences of text and press Ctrl+Shift+S or Ctrl+Alt+S.
#10
Oh well that was way to easy thanks Gintaras for the help .... 8) i love this program :oops:


Forum Jump:


Users browsing this thread: 2 Guest(s)