HI , I am trying to complete one of the excerise of AI-102 certifications:- "Recognize and Synthesize Speech" but its failed with error.

prateek 0 Reputation points
2023-06-16T11:43:32.01+00:00

Hi , i am trying to complete AI-102 certification guide provided Microsoft. on following each and every step correctly using python in my local machine and using VS code IDE . i am getting following error.

I have correctly cloned repository from git hub and progressively made all changes as per guide, but its keeps on failing with below error even at very first time of execution of script "python speaking-clock.py"

Please help i am new to azure.

repository has been cloned from:-

https://microsoftlearning.github.io/AI-102-AIEngineer/Instructions/07-speech.html

guide , I am following from to complete tutorial:-

https://microsoftlearning.github.io/AI-102-AIEngineer/Instructions/07-speech.html

I am logged in to azure services, and updated .env file with end point and key

Error i am getting

Exception with error code: 
[CALL STACK BEGIN]

    > pal_string_to_wstring
    - pal_string_to_wstring
    - speech_config_from_subscription_internal
    - ffi_call_win64
    - ffi_call_go
    - ffi_call
    - DllCanUnloadNow
    - DllCanUnloadNow
    - 00007FF9D3246938 (SymFromAddr() error: Attempt to access invalid address.)
    - PyObject_Call
    - PyEval_GetFuncDesc
    - PyEval_EvalFrameDefault
    - PyEval_EvalFrameDefault
    - PyFunction_Vectorcall
    - PyVectorcall_Call
    - PyEval_GetFuncDesc

[CALL STACK END]

Exception with an error code: 0x5 (SPXERR_INVALID_ARG)
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,858 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,047 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VasaviLankipalle-MSFT 18,386 Reputation points
    2023-06-17T00:19:13.3566667+00:00

    Hello @prateek , Thanks for using Microsoft Q&A Platform.

    I was able to reproduce successfully on my end. Could you please verify whether you are adding the right key and the region details from the speech resource?

    COG_SERVICE_KEY=your_cognitive_services_key (ex: key1 or key2)

    COG_SERVICE_REGION=your_cognitive_services_location (ex: eastus)

    User's image

    If you have added endpoint instead region, please correct it. Please try these and let us know.

    I hope this helps.

    Regards,
    Vasavi

    -Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.