News for hackers. Stuff that matters.

da12

Re:How to compare floats in Python on Wednesday March 30, 2022 @11:57AM (#30856953)
Could you explain what you mean the 0.0 case? math.isclose() has an abs_tol parameter for, among other things, handling comparisons to 0.
Re:Why can't you reverse a string with a flag emoji? on Thursday January 27, 2022 @05:36PM (#30107939)
If you're using Python, check out grapheme: https://github.com/alvinlindstam/grapheme
Re:Why can't you reverse a string with a flag emoji? on Thursday January 27, 2022 @03:04PM (#30105626)
A whole lesson in Unicode in itself right there with your experience, haha!
Fantastic reference. Thanks for sharing!
Re:Guide to Speech Recognition with Python on Sunday March 25, 2018 @11:05PM (#16676302)
Cheers! I'll definitely check this out.
Re:Guide to Speech Recognition with Python on Sunday March 25, 2018 @06:15PM (#16674960)
That's a really good point. I am the author of the article, and this is something I debated during writing. In the end the goal was to provide an "in-depth enough" tutorial on adding speech recognition to an app for people who were new to it and possibly intimidated by the topic. For that, I think SpeechRecognition is a fantastic module.

I had to leave a lot out of this that I wish could have gone in, simply due to length constraints. In that regard, perhaps "The Ultimate Guide to Speech Recognition" wasn't be best choice of title. I'm sure that we'll be updating this article as time goes on, and Google's streaming API is something I want to make sure goes in it.

Also, something that was left out of the article was SpeechRecognition's listen_in_background method, which does solve this problem somewhat. My issue with it is that SpeechRecognition uses a somewhat crude RMS energy based VAD for detecting speech.

Thanks for your feedback!