speech example

fanfalveto

Active Member
Licensed User
Longtime User
good evening, I tried the example and works great, but is there any way to save the settings pitch and sppech rate used in activity for use in another?
this settings i see are only read,is possible do that?
thank you very much
 

fanfalveto

Active Member
Licensed User
Longtime User
thnaks,i try but i don´t know how do that pitch is write only i can´t put values of this in a map or float or an string.i try but i can´t,sorry
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
i try to do that
B4X:
tono=tts1.pitch
and is wrong then
B4X:
Sub barPitch_ValueChanged (Value As Int, UserChanged As Boolean)
   If UserChanged Then
      TTS1.Pitch = Value / 10
      tono=Value / 10
      Log (tono)
   End If
End Sub
and ok
thank you
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
tono=tts1.pitch

Hi, I didn't try speech, but logically speaking, I think you may want to save the
absolute numerical value of the pitch and not reference it.


DIM PitchNumber as Long
PitchNumber = tts1.pitch

then save PitchNumber to a text file and when you come back assign it to tts1
 
Last edited:
Upvote 0
Top