Код: Выделить всё
import assemblyai as aai
aai.settings.api_key = "36e44e8bd4264779bfedf789d446a007"
FILE_URL = '"C:\\Users\\MSI I511400\\OneDrive\\Documents\\CiiS\\50 Calls\\10 Calls\\Daniel Call 2.mp3"'
File "\", line 1
FILE_URL = '"C:\\Users\\MSI I511400\\OneDrive\\Documents\\CiiS\\50 Calls\\10 Calls\\Daniel Call 2.mp3"'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Код: Выделить всё
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 3-4: truncated \\UXXXXXXXX escape\`
transcriber = aai.Transcriber()
transcript = transcriber.transcribe(FILE_URL)
Traceback (most recent call last):
File "\", line 1, in \
NameError: name 'FILE_URL' is not defined
Код: Выделить всё
if transcript.status == aai.TranscriptStatus.error:
print(transcript.error)
else:
print(transcript.text)
Подробнее здесь: https://stackoverflow.com/questions/790 ... -the-error