Giter Club home page Giter Club logo

Comments (3)

ggerganov avatar ggerganov commented on May 12, 2024 4

You can now output the results to multiple file formats. For example:

./main -m models/ggml-tiny.en.bin -f samples/jfk.wav -otxt -ovtt -osrt

will generate .txt, .vtt and .srt files.

Also, you can now redirect the results with >, as suggested by @aufziehvogel

from whisper.cpp.

 avatar commented on May 12, 2024 2

I use redirection with > and for me it works without problems.

Maybe you're experiencing buffering? Shell redirection to my knowledge by default uses output buffering, i.e. you will not see data as it is written by the program. Instead, data will be written to the file whenever there (according to the buffering implementation) is enough data.

You can change the buffering with stdbuf. For example, to write to the file once per line you could call:

stdbuf -oL ./main -m models/ggml-large.bin -f input.wav > output.txt

One useful option imo would be to get the output without all model loading info (lines starting with whisper_model_load: and main:). Imo, the model loading info could be written to stderr, because it is intended for human readers, while the actual detections could go to stdout. Then a normal redirection with > would still output the model loading info on the screen.

from whisper.cpp.

paveloom avatar paveloom commented on May 12, 2024

Yeah, I thought it's related to buffering, too, @aufziehvogel. I think I waited for quite a while, though, and yet nothing showed up. Anyhow, thanks for letting me know about stfbuf, that fixed it!

Thanks, @ggerganov!

from whisper.cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.