Skip to main content

audio2text-input

Description

This is a sequence which transript audio file using AssemblyAi API.

Prerequisites

❗ Remember to setup transform-hub locally or use the platform's environment for the sequence deployment.

As this apps is using AssemblyAi Api, the key is required to use it. For informations how to get one please refer to assemblyAi

Running

Open the terminal and run the following commands:

# go to 'repo-checker' directory
cd typescript/audio2text-input

# install dependencies
npm install

# transpile TS->JS to dist/
npm run build

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

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

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

# upload file to a instance
si inst input - /path/to/your/file -e -t application/octet-stream

Getting results

All the informations generated by this instance will be available at the log channel.

To get result simply type in console:

si inst output -

Testing

to make testing easier the sequence contains file ready to be uploaded.

Logs when running this sequence with a sample file should look like this:

screenshot

Was it helpful?

Didn't find information needed?

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