Skip to content

Using Aligner with whisper model #424

@pierre0x

Description

@pierre0x

I am trying to align a text and I don't get how to use the inference function, when I use this code, I get an error

`import stable_whisper
from stable_whisper import non_whisper
model = stable_whisper.load_model('base')

result = non_whisper.Aligner(model.transcribe,"outvideo.mp3",assembled_text)

myencoder = stable_whisper.load_model('base').encoder()
mydecoder = stable_whisper.load_model('base').decoder()
result = non_whisper.Aligner(model.transcribe,mydecoder,myencoder).align(audio="audio.mp3",
text=assembled_text)`

How to properly use the Aligner function with the model ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions