GithubHelp home page GithubHelp logo

Comments (5)

mallorbc avatar mallorbc commented on July 3, 2024

The code is already like this though?

if is_audio_loud_enough:
predicted_text = ''
# faster_whisper returns an iterable object rather than a string
if self.faster:
segments, info = self.audio_model.transcribe(audio_data)
for segment in segments:
predicted_text += segment.text
else:
if self.english:
result = self.audio_model.transcribe(audio_data,language='english',suppress_tokens="")
else:
result = self.audio_model.transcribe(audio_data,suppress_tokens="")
predicted_text = result["text"]
if not self.verbose:
if predicted_text not in self.banned_results:
self.result_queue.put_nowait(predicted_text)
else:
if predicted_text not in self.banned_results:
self.result_queue.put_nowait(result)
if self.save_file:
# os.remove(audio_data)
self.file.write(predicted_text)

Perhaps I neglected to push a new release with this? I will look into in when I get some time

from whisper_mic.

mallorbc avatar mallorbc commented on July 3, 2024

With regards to how to get the text back, the result is being written to a queue. You get the result from pulling from the queue.

from whisper_mic.

SuppliedOrange avatar SuppliedOrange commented on July 3, 2024

I installed this from pip, so yeah probably. Sorry if my post came off as a little rude, I just re-read it.
I hope it gets fixed!

from whisper_mic.

mallorbc avatar mallorbc commented on July 3, 2024

I installed this from pip, so yeah probably. Sorry if my post came off as a little rude, I just re-read it. I hope it gets fixed!

I did not find it rude. Thanks for bringing it to my attention! People like you help make Open Source better!

from whisper_mic.

mallorbc avatar mallorbc commented on July 3, 2024

This should be fixed. Please let me know if it is not

from whisper_mic.

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.