Vietnamese fine_tune_xlsr_wav2vec2_speech2text_vietnamese Wav2Vec2ForCTC from leduytan93

Description

Pretrained Wav2Vec2ForCTC model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.fine_tune_xlsr_wav2vec2_speech2text_vietnamese is a Vietnamese model originally trained by leduytan93.

Download Copy S3 URI

How to use

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

speechToText  = Wav2Vec2ForCTC.pretrained("fine_tune_xlsr_wav2vec2_speech2text_vietnamese","vi") \
     .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 = Wav2Vec2ForCTC.pretrained("fine_tune_xlsr_wav2vec2_speech2text_vietnamese", "vi")
    .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: fine_tune_xlsr_wav2vec2_speech2text_vietnamese
Compatibility: Spark NLP 5.5.1+
License: Open Source
Edition: Official
Input Labels: [audio_assembler]
Output Labels: [text]
Language: vi
Size: 1.2 GB

References

https://huggingface.co/leduytan93/Fine-Tune-XLSR-Wav2Vec2-Speech2Text-Vietnamese