Skip to main content

audio2text_py

Requirements


For this Sequence to run properly, it is required to register and acquire an API key from AssemblyAI

Install and Run


Install the Transform-Hub locally or use Scramjet's Cloud Platform environment for the Sequence deployment. For more information on the below commands check the CLI reference section on Scramjet's Website.

On the terminal run the following commands:

# Create directory __pypackages__ in the same directory as main.py
mkdir __pypackages__

# Install dependencies in the __pypackages__ folder.
pip3 install -t __pypackages__ -r requirements.txt

# Pack the Sequence into a gzip format
si seq pack audio2text

# Send the Sequence to the Transform-Hub, with a return <Sequence-id> value
si seq send audio2text.tar.gz

# Start a Sequence, with the AssemblyAi-key as an argument parameter
si seq start <Sequence-id> --args [\"<AssemblyAI-token>\"]

# Transcription of the audio file as text output
si inst output <Instance-id>

Check out the source on GitHub

Was it helpful?

Didn't find information needed?

Join our Scramjet Community on Discord, where you can get help from our engineers directly.