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

Microsoft.CognitiveServices.Speech Crash on iOS #13878

Closed
Suprndm opened this issue Mar 13, 2023 · 3 comments
Closed

Microsoft.CognitiveServices.Speech Crash on iOS #13878

Suprndm opened this issue Mar 13, 2023 · 3 comments
Labels
platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@Suprndm
Copy link

Suprndm commented Mar 13, 2023

Description

I've installed Microsoft.CognitiveServices.Speech package 1.26.0, to speak some sentences on my MAUI app.

on Windows and Android, works. on iOS in crashes.

On the line : SpeechConfig.FromSubscription(subscriptionKey, subscriptionRegion);

Steps to Reproduce

  1. Add nuget package Microsoft.CognitiveServices.Speech
  2. Call var config = SpeechConfig.FromSubscription(subscriptionKey, subscriptionRegion);

Link to public reproduction project repository

https://github.com/Suprndm/speech-crash-maui-ios

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 16.0

Did you find any workaround?

Not yet

Relevant log output

An error occurred: '__Internal'. Callstack: '   at Microsoft.CognitiveServices.Speech.SpeechConfig.FromSubscription(String subscriptionKey, String region)
[...]
 at Foundation.NSAsyncSynchronizationContextDispatcher.Apply()
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName)
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
   at Learning.WindowsApp.Program.Main(String[] args) in ************\Learning.WindowsApp\Platforms\iOS\Program.cs:line 13
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)'
The app has been terminated.
@Suprndm Suprndm added the t/bug Something isn't working label Mar 13, 2023
@drasticactions
Copy link
Contributor

@Suprndm Can you check out this project and run "SpeechApple" with your tokens here? https://github.com/drasticactions/MauiRepros/blob/main/SpeechApple/AppDelegate.cs#L34-L35

I couldn't repro your exception in your project nor mine with tokens I created, and going by that stacktrace I have a feeling the issue is with the library rather than anything contained in this repository.

@drasticactions drasticactions added the s/needs-info Issue needs more info from the author label Mar 14, 2023
@ghost
Copy link

ghost commented Mar 14, 2023

Hi @Suprndm. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Mar 20, 2023
@ghost
Copy link

ghost commented Mar 20, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Mar 23, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 22, 2023
@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Feb 1, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants