Warning: this is an htmlized version!
The original is here, and
the conversion rules are here.
# This file:
#   http://anggtwu.net/WHISPER/test1.py.html
#   http://anggtwu.net/WHISPER/test1.py
#          (find-angg "WHISPER/test1.py")
# Author: Eduardo Ochs <eduardoochs@gmail.com>
#
# (defun e () (interactive) (find-angg "WHISPER/test1.py"))

import assemblyai as aai
aai.settings.api_key = "45_a318aad48d46f7a2ec55978f6674b1"
# ^ Remove the _

transcriber = aai.Transcriber()
# transcript = transcriber.transcribe("/tmp/2023m.mp3")
print("Hello")
# print(transcript.text)
print("Bye")

foo = aai.Transcriber().transcribe(
        # "/tmp/2023m.mp3",
        # "/tmp/2023mateus.mp3",
        # "/tmp/2023quinet.mp3",
        "/tmp/e1.mp4",
        config=aai.TranscriptionConfig(
            # language_code=None,
            # language_detection=True,
            language_code = aai.LanguageCode.pt,
            language_detection = False,
        ),
    )
print(foo)
print(foo.text)
print(foo.export_subtitles_srt())
print(foo.export_subtitles_vtt())
print("Bye 2")


"""
* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
python3 test1.py

* (eepitch-python)
* (eepitch-kill)
* (eepitch-python)
exec(open("test1.py").read(), globals())

import assemblyai as aai

print(aai.LanguageCode.en)
print(aai.LanguageCode.pt)
print(aai.LanguageCode.foo)

print(transcriber)
print(aaai.language_code())
# transcript = transcriber.transcribe("https://storage.googleapis.com/aai-web-samples/news.mp4")
transcript = transcriber.transcribe("/tmp/2023mateus.mp3")

print(transcript.text)

# (find-es "ffmpeg" "feury-cut-mnu4")
# (find-extra-file-links "/tmp/2023m.mp3" "{c}")
# (find-audio "/tmp/2023mateus.mp3")
# (find-audio "/tmp/2023mateus.mp3" "0:10")
# (find-audio "/tmp/2023m.mp3")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
rm -fv /tmp/2023m.mp3
ffmpeg -ss 0:10 -to 0:40 -i /tmp/2023mateus.mp3 -c copy /tmp/2023m.mp3

rm -fv /tmp/e1.mp4.mp3
ffmpeg -ss 0:10 -to 0:40 -i /tmp/e.mp4 -c copy /tmp/e1.mp4

"""