chore: images create

This commit is contained in:
jialin
2024-11-22 10:00:34 +08:00
parent c3473673da
commit dde937f460
52 changed files with 1883 additions and 941 deletions
@@ -13,6 +13,7 @@ interface AudioInputProps {
onAnalyse?: (analyseData: any, frequencyBinCount: any) => void;
onAudioPermission: (audioPermission: boolean) => void;
onRecord?: (isRecording: boolean) => void;
onStop?: () => void;
voiceActivity?: boolean;
type?: 'text' | 'primary' | 'default';
}
@@ -55,7 +56,7 @@ const AudioInput: React.FC<AudioInputProps> = (props) => {
const handleStopRecording = () => {
setIsRecording(false);
audioRecorder.current?.stop();
props.onRecord?.(false);
// props.onRecord?.(false);
};
// get all audio tracks
@@ -136,6 +137,7 @@ const AudioInput: React.FC<AudioInputProps> = (props) => {
const stopRecording = () => {
audioRecorder.current?.stop();
setIsRecording(false);
props.onRecord?.(false);
};
const handleAudioData = (audioData: any) => {