Convert spoken language into written text for transcription services, voice assistants, and accessibility features
Basic usage
Send an audio file to an ASR model to generate text
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('facebook/data2vec-audio-base-960h');// provide the model with inputconst input = { "url": "https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/automatic-speech-recognition/input.flac"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });
from bytez import Bytez# insert your keysdk = Bytez("BYTEZ_KEY")# choose your modelmodel = sdk.model("facebook/data2vec-audio-base-960h")# provide the model with inputinput = { "url": "https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/automatic-speech-recognition/input.flac"}# send to the modelresult = model.run(input)# observe the outputprint({"error": result.error, "output": result.output})