# “AttributeError: module ‘openai’ has no attribute ‘Audio’”

**URL:** <https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195>\
**Category:** API\
**Created:** [March 2, 2023, 8:24am UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195 "2023-03-02T08:24:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![j010e\_ai](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/j010e_ai/32/33618_2.png) [@j010e\_ai](https://community.openai.com/u/j010e_ai)\
**Post date:** [March 2, 2023, 8:24am UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/1 "2023-03-02T08:24:14Z")

</div>

AttributeError Traceback (most recent call last)  
Input In [2], in \<cell line: 4\>()  
1 import openai  
3 file = open(“C:/Users/user/Downloads/audio/001.mp3”, “rb”)  
----\> 4 transcription = openai.Audio.transcribe(“whisper-1”, f)  
6 print(transcription)

AttributeError: module ‘openai’ has no attribute ‘Audio’

I face that problem ,anyone had the same problem ?

---

<div class="post-metadata">

**Author:** ![i.lakhzine2015](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/i.lakhzine2015/32/37499_2.png) [@i.lakhzine2015](https://community.openai.com/u/i.lakhzine2015)\
**Post date:** [March 2, 2023, 2:34pm UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/2 "2023-03-02T14:34:35Z")

</div>

transcription = openai.Audio.transcribe(“whisper-1”, file) try this now it should work replace f bu file

---

<div class="post-metadata">

**Author:** ![sps](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/sps/32/7736_2.png) [@sps](https://community.openai.com/u/sps)\
**Post date:** [March 2, 2023, 2:40pm UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/3 "2023-03-02T14:40:14Z")

</div>

Welcome to the community @i.lakhzine2015

Here’s the first line of boilerplate code in [docs for transcribing with `whisper-1`](https://platform.openai.com/docs/guides/speech-to-text/transcriptions)

```auto
# Note: you need to be using OpenAI Python v0.27.0 for the code below to work

```

---

<div class="post-metadata">

**Author:** ![caghog7](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@caghog7](https://community.openai.com/u/caghog7)\
**Post date:** [March 21, 2023, 12:29pm UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/4 "2023-03-21T12:29:26Z")

</div>

How would you go about checking this in jupyter notebook?

---

<div class="post-metadata">

**Author:** ![j010e\_ai](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/j010e_ai/32/33618_2.png) [@j010e\_ai](https://community.openai.com/u/j010e_ai)\
**Post date:** [March 21, 2023, 1:46pm UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/5 "2023-03-21T13:46:31Z")

</div>

thank you ! it’s working now

> Blockquote

---

<div class="post-metadata">

**Author:** ![EricGT](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/ericgt/32/20571_2.png) [@EricGT](https://community.openai.com/u/EricGT)\
**Post date:** [December 20, 2023, 12:57pm UTC](https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-audio/81195/6 "2023-12-20T12:57:10Z")

</div>

Closed on December 20, 2023, 12:57pm UTC


