Skip to content
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

bug: No match and Client side error gives not snowing transcript #89

Closed
codexuz opened this issue May 5, 2024 · 2 comments
Closed

bug: No match and Client side error gives not snowing transcript #89

codexuz opened this issue May 5, 2024 · 2 comments

Comments

@codexuz
Copy link

codexuz commented May 5, 2024

Plugin version:

Platform(s):

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Capacitor doctor:

insert the output from `npx cap doctor` here
@codexuz
Copy link
Author

codexuz commented May 12, 2024

<script setup>
import { ref, onMounted } from 'vue'
import { useSpeechRecognition } from '@vueuse/core'
import { useUserMedia } from '@vueuse/core'
import { AVMedia } from 'vue-audio-visual';
import { mic } from 'ionicons/icons';
import { SpeechRecognition } from "@capacitor-community/speech-recognition";

const { stream, enabled  } = useUserMedia({
  constraints: { audio:true },
})

const showBar = ref(false)
const speechResult = ref('')


  async function startRecognition() {
    const { available } = await SpeechRecognition.available();
    
    if (available) {
      await SpeechRecognition.start({
        language: "en-US",
        partialResults: false,
        popup: false
      });
      
          // listen to partial results
      SpeechRecognition.addListener("partialResults", (data) => {
        if(data.matches && data.matches.length > 0){
          speechResult.value = data.matches[0];
          console.log(speechResult.value)
        }
        
      });
      
    }
 
}


onMounted( async () => {
const  { permission }  = await SpeechRecognition.hasPermission();
console.log(permission)
if(!permission){
  await SpeechRecognition.requestPermission();
  await SpeechRecognition.requestPermissions();
}
})

</script>

Platform: Android

Version: ^5.36.0

Capacitor Doctor:

   Capacitor Doctor

Latest Dependencies:       

  @capacitor/cli: 6.0.0    
  @capacitor/core: 6.0.0   
  @capacitor/android: 6.0.0
  @capacitor/ios: 6.0.0    

Installed Dependencies:    

  @capacitor/ios: 6.0.0    
  @capacitor/cli: 6.0.0    
  @capacitor/core: 6.0.0   
  @capacitor/android: 6.0.0

@jcesarmobile
Copy link
Contributor

closing as invalid since it's not clear what the problem is

please, when reporting issues fill the template and provide all the required information, including a sample app that reproduces the code, not just a snippet of code

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants