tip: how to convert audio to text
Using #Python pydub and speed_recognition to convert audio to text:
https://twitter.com/bbelderbos/status/1442519795761549325
Using #Python pydub and speed_recognition to convert audio to text:
https://twitter.com/bbelderbos/status/1442519795761549325
Twitter
Bob Belderbos
Using #Python pydub and speed_recognition to convert audio to text:
Found very intersting approach to count the digits of an integers #python:
from math import floor, log10
def count_digits(n):
return 1 + floor(log10(n))
In [2]: count_digits(5)
Out[2]: 1
In [3]: count_digits(999)
Out[3]: 3
In [4]: count_digits(1000)
Out[4]: 4
TIL a faster way to remove duplicates from a #python iterable, preserving order (in https://youtu.be/5xArPgQMJls?t=2149 by
@SebaWitowski
)
def unique_items(iterable):
# Requires hashable items, Python 3.6+
return dict.fromkeys(iterable)
@SebaWitowski
)
def unique_items(iterable):
# Requires hashable items, Python 3.6+
return dict.fromkeys(iterable)
YouTube
Sebastian Witowski - Writing Faster Python 3
Strona PyConPL: https://pl.pycon.org
FB: http://pl.pycon.org/
Linkedin: https://www.linkedin.com/company/pyco...
Twitter: https://twitter.com/pyconpl
Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating…
FB: http://pl.pycon.org/
Linkedin: https://www.linkedin.com/company/pyco...
Twitter: https://twitter.com/pyconpl
Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating…