Edgewise API
Docs
GitHub
Preparing search index...
react
useSpeak
Function useSpeak
useSpeak
(
o
:
Omit
<
SpeakOptions
,
"input"
|
"signal"
>
,
)
:
{
speak
:
(
input
:
string
|
AsyncIterable
<
string
,
any
,
any
>
,
)
=>
Promise
<
SpeechAudio
>
;
speaking
:
boolean
;
stop
:
()
=>
void
|
undefined
;
}
Speak text.
speak()
streams to the speakers;
stop()
cuts it off.
Parameters
o
:
Omit
<
SpeakOptions
,
"input"
|
"signal"
>
Returns
{
speak
:
(
input
:
string
|
AsyncIterable
<
string
,
any
,
any
>
,
)
=>
Promise
<
SpeechAudio
>
;
speaking
:
boolean
;
stop
:
()
=>
void
|
undefined
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Docs
GitHub
Edgewise API
Loading...
Speak text.
speak()streams to the speakers;stop()cuts it off.