Edgewise API
Docs
GitHub
Preparing search index...
react
useMic
Function useMic
useMic
(
o
?:
MicOptions
,
)
:
{
error
:
EdgewiseError
|
null
;
level
:
number
;
listening
:
boolean
;
source
:
Mic
|
null
;
start
:
()
=>
Promise
<
void
>
;
stop
:
()
=>
Promise
<
Float32Array
<
ArrayBufferLike
>
>
;
}
The microphone as React state. Pass
source
as the input of a speech model.
Parameters
o
:
MicOptions
= {}
Returns
{
error
:
EdgewiseError
|
null
;
level
:
number
;
listening
:
boolean
;
source
:
Mic
|
null
;
start
:
()
=>
Promise
<
void
>
;
stop
:
()
=>
Promise
<
Float32Array
<
ArrayBufferLike
>
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Docs
GitHub
Edgewise API
Loading...
The microphone as React state. Pass
sourceas the input of a speech model.