from bismuth import API
class TranscriptionAPI(API):
def __init__(self):
super().__init__(
title="Advanced Transcription API",
version="1.0",
description=""
)
# We'll show these as you scroll.
self.add_route("/store_audio", {
"POST": self.store_audio
})
self.add_route("/transcribe", {
"POST": self.transcribe
})
self.add_route("/get_transcription", {
"GET": self.get_transcription
})
self.assembly_api_url = "https://api.assemblyai.com/v2"