Skip to content

Conversation

@xenova
Copy link
Collaborator

@xenova xenova commented Mar 4, 2024

Follow-up to #611

Example usage:

import { pipeline } from '@xenova/transformers';

// Create an Automatic Speech Recognition pipeline
const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/unispeech-sat-base-100h-libri-ft');

// Transcribe audio
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
const output = await transcriber(url);
// { text: 'AND SO MY FELLO AMERICAN ASK NOT WHAT YOUR COUNTRY CAN DO FOR YOU ASK WHAT YOU CAN DO FOR YOUR COUNTRY' }

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@xenova xenova merged commit 5f57224 into main Mar 6, 2024
@xenova xenova deleted the add-unispeech-sat branch March 6, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants