Python, Data Science, AI, NLP, Programming.
load_dataset("librispeech_asr", "clean", split="test.100") # audio file is decoded on the fly inputs = processor(librispeech_samples[0]["audio"]["array"], sampling_rate=16_000, return_tensors="pt") logits = model(**inputs).logits predicted_ids = torch.argmax(logits, dim=-1) # transcribe speech