-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voice Recognition Functionality Does Not Stop When Navigating Between Screens #502
Comments
Yes same issue i am facing as well import { const db = SQLite.openDatabase( function Objectdetection({navigation}) { const [imag, setimag] = useState(null); useEffect(() => { useEffect(() => { const [initialFocus, setInitialFocus] = useState(true); // Track initial focus useEffect(() => { useEffect(() => {
}, [loading, cameraPermission, microphonePermission, cameraDevice]); const takePhoto = async () => {
}; const [isListening, setIsListening] = useState(false); useEffect(() => {
}, [navigation, isFocused]); useEffect(() => {
}, []); const startListening = async () => { function getContactNumber(contactName) { const onSpeechResults = e => {
}; const onSpeechEnd = () => { useEffect(() => {
}, [navigation]); /**fetching contacts */ useEffect(() => { const fetchContacts = () => { return ( const styles = StyleSheet.create({ export default Objectdetection; //This is second mpdule import React, {useState, useEffect} from 'react'; function CurrencyDetection({navigation}) { useEffect(() => { useEffect(() => {
}, [isFocused]); const startListening = async () => { const stopListening = async () => { const onSpeechResults = e => {
}; useEffect(() => {
}, []); return ( const styles = StyleSheet.create({ export default CurrencyDetection; can please anybody please identify me the error please |
I am developing a React Native application that uses the @react-native-voice/voice library to implement a voice command interface. There is an issue with the voice recognition functionality when navigating between different screens. Specifically, when transitioning from the Objectdetection screen to the FakeCurrency screen, the voice recognition on Objectdetection stops and starts correctly on FakeCurrency. However, when navigating back to Objectdetection, the voice recognition functionality of the FakeCurrency screen does not stop, resulting in both screens potentially having active voice recognition processes simultaneously. This causes overlapping functionalities and unexpected behavior within the app.
The text was updated successfully, but these errors were encountered: