XFSpeech icon indicating copy to clipboard operation
XFSpeech copied to clipboard

Can't record anything

Open godrose opened this issue 6 years ago • 4 comments

Env: MacOS HighSierra, VS for Mac 7.7.4, API 26 Emulator

Repro steps(Android):

  • Press start

Expected: 'Speak now' dialog pops up and stays on the foreground allowing the user to record something

Actual: 'Speak now' dialog pops up and immediately displays 'Tap to speak' caption. (Pressing microphone shows 'Speak now' for a fraction of a second and then reverts to 'Tap to speak')

godrose avatar Feb 03 '19 13:02 godrose

Hi godrose, did you find any solution that addresses this problem ?

Edit : I found it Replace the code in the constructor of your SpeechToTextImplementation //_activity = CrossCurrentActivity.Current.Activity; _activity = (Activity)Forms.Context;

It's just that your app certainly couldn't get the Activity, inducing a NullReferenceException. Hoping that it helps somebody !

killgroove avatar Apr 14 '19 13:04 killgroove

@killgroove Thanks a lot!

godrose avatar Apr 15 '19 05:04 godrose

@godrose With pleasure ! By the way, have you been able to retrieve the result of the speech (as a text argument) into a label, in the XFSSpeechDemo project ? On my side, I can talk but the label never seems to be filled. I have the exact same solution that on this repository.

killgroove avatar Apr 15 '19 17:04 killgroove

@godrose , @killgroove did it work for you in iOS ? nothing is happening for me in iOS

AbdChahid avatar May 09 '23 12:05 AbdChahid