csdcorp / speech_to_text

A Flutter plugin that exposes device specific text to speech recognition capability.
BSD 3-Clause "New" or "Revised" License
348 stars 217 forks source link

No permissions anymore on IOS #490

Closed carpentierchloe closed 2 months ago

carpentierchloe commented 2 months ago

I have the version 6.0.0 and it does not work anymore on IOS (it is well working on Android).

I well have permission NSSpeechRecognitionUsageDescription and NSMicrophoneUsageDescription in ios/Runner/Info.plist

var hasSpeech = await speech.initialize(
        onError: errorListener,
        onStatus: statusListener,
        debugLogging: true,
      );

hasSpeech is returning "false"

I have the last version of flutter, brew and pod are updated. Impossible to get the version 6.0.1 : speech_to_text >=6.6.1 depends on js ^0.7.1 and connectivity_plus >=4.0.2 depends on js ^0.6.4, speech_to_text >=6.6.1 is incompatible with connectivity_plus >=4.0.2.

Thanks a lot for your help

sowens-csd commented 2 months ago

Do you get the same issue with the example app? Can you upgrade the connectivity_plus plugin?

carpentierchloe commented 2 months ago

connectivity_plus 5.0.2 depends on js ^0.6.4 and no versions of connectivity_plus match >5.0.2 <6.0.0, connectivity_plus ^5.0.2 requires js ^0.6.4. And because speech_to_text >=6.6.1 depends on js ^0.7.1, connectivity_plus ^5.0.2 is incompatible with speech_to_text >=6.6.1. Consider downgrading your constraint on speech_to_text: flutter pub add speech_to_text:^6.6.0

sowens-csd commented 2 months ago

Try adding this until connectivity_plus upgrades, or just as a test to see if iOS is working for you.

dependency_overrides:
  js: ">=0.7.1"
carpentierchloe commented 2 months ago

Thx, I succeeded to get the version 6.0.1 of the package now. However, hasSpeech is still returning "false" :'(

sowens-csd commented 2 months ago

Is this on a real device or an emulator? Have you tried the sample app?

carpentierchloe commented 2 months ago

It is on a real device and it was working before.

carpentierchloe commented 2 months ago

With the package permission handler Permission.microphone.status is true but await speech.initialize( ) is still returning false.

carpentierchloe commented 2 months ago

The issue was with the permission of my device, all apologies.

Abhijit-Revamp commented 2 months ago

@carpentierchloe what was the permission issue? May be helpful for others too