Indonesian asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia TFWav2Vec2ForCTC from faraahahaha

Description

Pretrained Wav2vec2 model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia is a Indonesian model originally trained by faraahahaha.

NOTE: This model only works on a CPU, if you need to use this model on a GPU device please use asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia_gpu

Download Copy S3 URI

How to use


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

speech_to_text = Wav2Vec2ForCTC \
    .pretrained("asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia", "id")\
    .setInputCols("audio_assembler") \
    .setOutputCol("text")

pipeline = Pipeline(stages=[
  audio_assembler,
  speech_to_text,
])

pipelineModel = pipeline.fit(audioDf)

pipelineDF = pipelineModel.transform(audioDf)

val audioAssembler = new AudioAssembler()
    .setInputCol("audio_content") 
    .setOutputCol("audio_assembler")

val speechToText = Wav2Vec2ForCTC
    .pretrained("asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia", "id")
    .setInputCols("audio_assembler") 
    .setOutputCol("text") 

val pipeline = new Pipeline().setStages(Array(audioAssembler, speechToText))

val pipelineModel = pipeline.fit(audioDf)

val pipelineDF = pipelineModel.transform(audioDf)

Model Information

Model Name: asr_fine_tune_Wav2Vec2_XLS_R_300M_Indonesia
Compatibility: Spark NLP 4.2.0+
License: Open Source
Edition: Official
Input Labels: [audio_assembler]
Output Labels: [text]
Language: id
Size: 1.2 GB