Hausa saad_speech_recognition_hausa_audio_tonga_tonga_islands_text WhisperForCTC from Baghdad99

Description

Pretrained WhisperForCTC model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.saad_speech_recognition_hausa_audio_tonga_tonga_islands_text is a Hausa model originally trained by Baghdad99.

Download Copy S3 URI

How to use

     
audioAssembler = AudioAssembler() \
	.setInputCol("audio_content") \
	.setOutputCol("audio_assembler")

speechToText  = WhisperForCTC.pretrained("saad_speech_recognition_hausa_audio_tonga_tonga_islands_text","ha") \
     .setInputCols(["audio_assembler"]) \
     .setOutputCol("text")

pipeline = Pipeline().setStages([audioAssembler, speechToText])
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)


val audioAssembler = new DocumentAssembler()
    .setInputCols("audio_content")
    .setOutputCols("audio_assembler")

val speechToText = WhisperForCTC.pretrained("saad_speech_recognition_hausa_audio_tonga_tonga_islands_text", "ha")
    .setInputCols(Array("audio_assembler")) 
    .setOutputCol("text") 
    
val pipeline = new Pipeline().setStages(Array(documentAssembler, speechToText))
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

Model Information

Model Name: saad_speech_recognition_hausa_audio_tonga_tonga_islands_text
Compatibility: Spark NLP 5.5.0+
License: Open Source
Edition: Official
Input Labels: [audio_assembler]
Output Labels: [text]
Language: ha
Size: 1.7 GB

References

https://huggingface.co/Baghdad99/saad-speech-recognition-hausa-audio-to-text