test_whister.py 234 B

123456
  1. from paddlex import create_model
  2. model = create_model(model_name="whisper_small")
  3. output = model.predict(input="./sample_data/zh.wav", batch_size=1)
  4. for res in output:
  5. res.print()
  6. res.save_all(save_path="./sample_data/output")