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

SpeechToText - Objective-C - Can I get the Word level pronunciation assessment result #1380

Closed
wing199901 opened this issue Jan 18, 2022 · 7 comments
Assignees
Labels
accepted Issue moved to product team backlog. Will be closed when addressed. enhancement New feature or request pronunciation assessment

Comments

@wing199901
Copy link

Is your feature request related to a problem? Please describe.
I am not finding a way to get word level pronunciation assessment result with the Objective-C SDK, and it doesn't appear to be covered in the sample.

@pankopon
Copy link
Contributor

Hi, please take a look at the how to use pronunciation assessment page. Parameter granularity:SPXPronunciationAssessmentGranularity_Phoneme in the example should already produce scores on the word level, though you can also use granularity:SPXPronunciationAssessmentGranularity_Word. (See configuration parameters for details.)

@wing199901
Copy link
Author

@pankopon
Copy link
Contributor

Right - based on https://docs.microsoft.com/objectivec/cognitive-services/speech/spxpronunciationassessmentresult SPXPronunciationAssessmentResult seems to lack a property for words, while it exists in C#. So there's just the JSON result with word level scores.
@yulin-li Can you please confirm the above & is there a plan to add the Words property to SPXPronunciationAssessmentResult in Obj-C?

@pankopon pankopon assigned yulin-li and unassigned pankopon Jan 19, 2022
@pankopon
Copy link
Contributor

@wing199901 Meanwhile, you may read the JSON result string like

    [speechRecognizer addRecognizedEventHandler: ^ (SPXSpeechRecognizer *recognizer, SPXSpeechRecognitionEventArgs *eventArgs) {
        NSString *jsonResult = [eventArgs.result.properties getPropertyById:SPXSpeechServiceResponseJsonResult];
        NSLog(@"Received JSON: %@", jsonResult);
        // insert JSON parsing as appropriate...
    }];

The structure of the JSON result is as in the sample response.

@yulin-li
Copy link
Contributor

Hi @wing199901 thx for using Pronunciation Assessment and reaching out. Currently out objc SDK doesn't parse the json to object. I think you can parse it as @pankopon suggested.
We heard your requirement and added this work to backlog. I will let you know when it finished.

@pankopon pankopon added accepted Issue moved to product team backlog. Will be closed when addressed. enhancement New feature or request and removed in-review In review labels Jan 20, 2022
@yulin-li
Copy link
Contributor

yulin-li commented Feb 28, 2022

Hi @wing199901 We will implement this feature and release it with next version (1.21).

We tracked this internally (id 4094454), so I will close the issue here. Fell free to reopen it for any concerns

cc @pankopon

@dargilco
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Issue moved to product team backlog. Will be closed when addressed. enhancement New feature or request pronunciation assessment
Projects
None yet
Development

No branches or pull requests

4 participants