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
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...
#7: Post edited
- 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
- 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
- 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 <module>> voice_profile = speechsdk.VoiceProfile(voice_name, > speechsdk.VoiceProfileType.Online)^^^^^^^^^^^^^^^^^^^^^^> AttributeError: module 'azure.cognitiveservices.speech' has no attribute 'VoiceProfile'This is the code:```pythonimport loggingimport osimport unittestimport random # Align the import statement at the global levelimport rollbarrollbar.init(access_token='6ecdd7dcf9d74871be43a16f4116522a',environment='testenv',code_version='1.0')try:a = Nonea.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 payloadrollbar.events.add_payload_handler(payload_handler)try:a = Nonea.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
- 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 <module>
- > 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 <module>
- > 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
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
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_.pyTraceback (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 <module>
- > 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
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