Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

22%
+0 −5
Q&A AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile' [closed]

I need to use azure.cognitiveservices.speech. However I am getting this error: Here is code on replit it produces the same error. https://replit.com/@mystickain420/Chatty main -- https://githu...

0 answers  ·  posted 4mo ago by KunningFox‭  ·  closed 4mo ago by Alexei‭

#8: Question closed by user avatar Alexei‭ · 2024-01-08T15:26:16Z (4 months ago)
#7: Post edited by user avatar KunningFox‭ · 2024-01-08T15:22:07Z (4 months ago)
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • Here is code on replit it produces the same error.
  • -------
  • https://replit.com/@mystickain420/Chatty
  • main -- https://github.com/Domade/Chatty here is the code.
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • Here is code on replit it produces the same error.
  • -------
  • https://replit.com/@mystickain420/Chatty
  • ------
  • main -- https://github.com/Domade/Chatty here is the code.
#6: Post edited by user avatar KunningFox‭ · 2024-01-08T15:21:48Z (4 months ago)
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • https://github.com/Domade/Chatty here is the code.
  • Here is code on replit it produces the same error.
  • ------
  • https://replit.com/@mystickain420/Chatty
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • Here is code on replit it produces the same error.
  • ------
  • https://replit.com/@mystickain420/Chatty
  • main -- https://github.com/Domade/Chatty here is the code.
#5: Post edited by user avatar KunningFox‭ · 2024-01-08T15:19:46Z (4 months ago)
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • https://github.com/Domade/Chatty here is the code.
  • > C:\Users\19185\Desktop\Chatty>one_.py
  • > Traceback (most recent call last):
  • > File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in &lt;module&gt;
  • > voice_profile = speechsdk.VoiceProfile(voice_name, > speechsdk.VoiceProfileType.Online)
  • ^^^^^^^^^^^^^^^^^^^^^^
  • > AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
  • This is the code:
  • ```python
  • import logging
  • import os
  • import unittest
  • import random # Align the import statement at the global level
  • import rollbar
  • rollbar.init(
  • access_token='6ecdd7dcf9d74871be43a16f4116522a',
  • environment='testenv',
  • code_version='1.0'
  • )
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • def payload_handler(payload, **kw):
  • payload['data']['person'] = {
  • 'id': '1234',
  • 'username': 'testuser',
  • 'email': 'user@email',
  • }
  • payload['data']['custom'] = {
  • 'trace_id': 'aabbccddeeff',
  • 'feature_flags': [
  • 'feature_1',
  • 'feature_2',
  • ],
  • }
  • return payload
  • rollbar.events.add_payload_handler(payload_handler)
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • import azure.cognitiveservices.speech as speechsdk
  • ```
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • https://github.com/Domade/Chatty here is the code.
  • Here is code on replit it produces the same error.
  • ------
  • https://replit.com/@mystickain420/Chatty
#4: Post edited by user avatar KunningFox‭ · 2024-01-08T14:08:37Z (4 months ago)
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • > C:\Users\19185\Desktop\Chatty>one_.py
  • > Traceback (most recent call last):
  • > File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in &lt;module&gt;
  • > voice_profile = speechsdk.VoiceProfile(voice_name, > speechsdk.VoiceProfileType.Online)
  • ^^^^^^^^^^^^^^^^^^^^^^
  • > AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
  • This is the code:
  • ```python
  • import logging
  • import os
  • import unittest
  • import random # Align the import statement at the global level
  • import rollbar
  • rollbar.init(
  • access_token='6ecdd7dcf9d74871be43a16f4116522a',
  • environment='testenv',
  • code_version='1.0'
  • )
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • def payload_handler(payload, **kw):
  • payload['data']['person'] = {
  • 'id': '1234',
  • 'username': 'testuser',
  • 'email': 'user@email',
  • }
  • payload['data']['custom'] = {
  • 'trace_id': 'aabbccddeeff',
  • 'feature_flags': [
  • 'feature_1',
  • 'feature_2',
  • ],
  • }
  • return payload
  • rollbar.events.add_payload_handler(payload_handler)
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • import azure.cognitiveservices.speech as speechsdk
  • ```
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • https://github.com/Domade/Chatty here is the code.
  • > C:\Users\19185\Desktop\Chatty>one_.py
  • > Traceback (most recent call last):
  • > File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in &lt;module&gt;
  • > voice_profile = speechsdk.VoiceProfile(voice_name, > speechsdk.VoiceProfileType.Online)
  • ^^^^^^^^^^^^^^^^^^^^^^
  • > AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
  • This is the code:
  • ```python
  • import logging
  • import os
  • import unittest
  • import random # Align the import statement at the global level
  • import rollbar
  • rollbar.init(
  • access_token='6ecdd7dcf9d74871be43a16f4116522a',
  • environment='testenv',
  • code_version='1.0'
  • )
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • def payload_handler(payload, **kw):
  • payload['data']['person'] = {
  • 'id': '1234',
  • 'username': 'testuser',
  • 'email': 'user@email',
  • }
  • payload['data']['custom'] = {
  • 'trace_id': 'aabbccddeeff',
  • 'feature_flags': [
  • 'feature_1',
  • 'feature_2',
  • ],
  • }
  • return payload
  • rollbar.events.add_payload_handler(payload_handler)
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • import azure.cognitiveservices.speech as speechsdk
  • ```
#3: Post edited by user avatar Alexei‭ · 2024-01-08T13:56:39Z (4 months ago)
adjusted the title
  • I dumb monkey, gigabrain chatgpt not enough. I can not get past this error, more in description
  • AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
#2: Post edited by user avatar Alexei‭ · 2024-01-08T13:39:26Z (4 months ago)
removed fluff + added relevant tag
  • I need to call this library azure.cognitiveservices.speech however i am getting this error, I use ChatGPT to help me code my project, monkey plus banana = happy, however I am in a loop with her and need your help to get unstuck.
  • I went to stackoverflow however all i have found is jesters pretending to be kings. could I get help from this community? I have made a GitHub for the code though i don't know how to share it yet.
  • This is the error...
  • ```
  • C:\Users\19185\Desktop\Chatty>one_.py
  • Traceback (most recent call last):
  • File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in <module>
  • voice_profile = speechsdk.VoiceProfile(voice_name, speechsdk.VoiceProfileType.Online)
  • ^^^^^^^^^^^^^^^^^^^^^^
  • AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
  • ```
  • '''python code here
  • import logging
  • import os
  • import unittest
  • import random # Align the import statement at the global level
  • import rollbar
  • rollbar.init(
  • access_token='6ecdd7dcf9d74871be43a16f4116522a',
  • environment='testenv',
  • code_version='1.0'
  • )
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • def payload_handler(payload, **kw):
  • payload['data']['person'] = {
  • 'id': '1234',
  • 'username': 'testuser',
  • 'email': 'user@email',
  • }
  • payload['data']['custom'] = {
  • 'trace_id': 'aabbccddeeff',
  • 'feature_flags': [
  • 'feature_1',
  • 'feature_2',
  • ],
  • }
  • return payload
  • rollbar.events.add_payload_handler(payload_handler)
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • import azure.cognitiveservices.speech as speechsdk
  • ''python
  • I need to use `azure.cognitiveservices.speech`. However I am getting this error:
  • > C:\Users\19185\Desktop\Chatty>one_.py
  • > Traceback (most recent call last):
  • > File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in &lt;module&gt;
  • > voice_profile = speechsdk.VoiceProfile(voice_name, > speechsdk.VoiceProfileType.Online)
  • ^^^^^^^^^^^^^^^^^^^^^^
  • > AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
  • This is the code:
  • ```python
  • import logging
  • import os
  • import unittest
  • import random # Align the import statement at the global level
  • import rollbar
  • rollbar.init(
  • access_token='6ecdd7dcf9d74871be43a16f4116522a',
  • environment='testenv',
  • code_version='1.0'
  • )
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • def payload_handler(payload, **kw):
  • payload['data']['person'] = {
  • 'id': '1234',
  • 'username': 'testuser',
  • 'email': 'user@email',
  • }
  • payload['data']['custom'] = {
  • 'trace_id': 'aabbccddeeff',
  • 'feature_flags': [
  • 'feature_1',
  • 'feature_2',
  • ],
  • }
  • return payload
  • rollbar.events.add_payload_handler(payload_handler)
  • try:
  • a = None
  • a.hello()
  • except:
  • rollbar.report_exc_info()
  • import azure.cognitiveservices.speech as speechsdk
  • ```
#1: Initial revision by user avatar KunningFox‭ · 2024-01-08T13:05:38Z (4 months ago)
I dumb monkey, gigabrain chatgpt not enough. I can not get past this error, more in description
I need to call this library azure.cognitiveservices.speech however i am getting this error, I use ChatGPT to help me code my project, monkey plus banana = happy, however I am in a loop with her and  need your help to get unstuck.

I went to stackoverflow however all i have found is jesters pretending to be kings. could I get help from this community? I have made a GitHub for the code though i don't know how to share it yet.

This is the error...

```
C:\Users\19185\Desktop\Chatty>one_.py
Traceback (most recent call last):
  File "C:\Users\19185\Desktop\Chatty\one_.py", line 57, in <module>
    voice_profile = speechsdk.VoiceProfile(voice_name, speechsdk.VoiceProfileType.Online)
                    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'
```


    '''python code here 

     import logging
     import os


     import unittest


     import random  # Align the import statement at the global level

     import rollbar

     rollbar.init(
      access_token='6ecdd7dcf9d74871be43a16f4116522a',
      environment='testenv',
      code_version='1.0'
     )

    try:
        a = None
        a.hello()
    except:
        rollbar.report_exc_info()

    def payload_handler(payload, **kw):

    payload['data']['person'] = {
        'id': '1234',
        'username': 'testuser',
        'email': 'user@email',
    }

    payload['data']['custom'] = {
        'trace_id': 'aabbccddeeff',
        'feature_flags': [
            'feature_1',
            'feature_2',
        ],
    }

    return payload

    rollbar.events.add_payload_handler(payload_handler)

      try:
          a = None
           a.hello()
       except:
           rollbar.report_exc_info()

    import azure.cognitiveservices.speech as speechsdk

     ''python