Trouble to run Whisper-1, syntax error

Hi everyone! when i introduce this command i keep receiving the same error:

from openai import OpenAI
client = OpenAI()

audio_file= open(“C:/Users/rgasq/Desktop/HPB/prueba.mp3”, “rb”)
transcript = client.audio.transcriptions.create(
model=“whisper-1”,
file=audio_file
)
SyntaxError: multiple statements found while compiling a single statement

I’ve checked every possible way and i can’t run it.
Thanks a lot!

Python 3.8-3.11. Latest openai library.

import os
from openai import OpenAI
client = OpenAI()
audio_file = open("audio.mp3", "rb")
transcription = client.audio.transcriptions.create(
    model="whisper-1",
    file=audio_file,
    response_format="json",  # only json supported by Python
    prompt=" welcome to my talk.",
    language="en",
    temperature=0)
# some examples of how to retrieve from transcription object
audio_json = transcription.model_dump()
plain_text = audio_json.get('text')
print(transcription.dict()['text'])

Thanks for your response. Now when i input the command i dont have any output in return haha. i have Python v 3.11.6

I was finally able to solve it. I put print(transcription) and voilá! problem solved. Thanks for your help!