mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Add missing non-gold props * Update tests * fix linting errors * add mimeType Co-authored-by: Ryan Rouleau <rrouleau@soundhound.com>
24 lines
624 B
TypeScript
24 lines
624 B
TypeScript
import * as React from 'react';
|
|
|
|
import { ReactMic } from 'react-mic';
|
|
|
|
class ReactMicTest extends React.Component {
|
|
render() {
|
|
return (
|
|
<ReactMic
|
|
record={true}
|
|
className="sound-wave"
|
|
onStop={data => console.log(data)}
|
|
onData={data => console.log(data)}
|
|
mimeType="audio/wav"
|
|
strokeColor="#000000"
|
|
backgroundColor="#FF4081"
|
|
channelCount={1}
|
|
echoCancellation
|
|
autoGainControl
|
|
noiseSuppression
|
|
/>
|
|
);
|
|
}
|
|
}
|