Ulawulo lwelizwi kwiPC kunye neRaspberryPi ngeWhisper

ulawulo lwelizwi kwi-pc kunye ne-raspberry pi

Umbono weprojekthi yile ukunika imiyalelo yelizwi ukusebenzisana ngePC yethu okanye kwiRaspberry Pi yethu usebenzisa imodeli yeVoice-to-text Whisper.

Siza kunika umyalelo oza kubhalwa, uguqulelwe kwisicatshulwa, kunye ne-Whisper kwaye emva koko sihlalutye ukuphumeza umyalelo ofanelekileyo, onokuthi uphume ekuphumezeni inkqubo yokunika i-voltage kwi-RaspberryPi izikhonkwane.

Ndiza kusebenzisa iRaspberry Pi 2 yakudala, i-USB encinci kwaye ndiza kusebenzisa imodeli yeVoice-to-text esanda kukhutshwa yi-OpenAI, Ukuhleka. Ekupheleni kwenqaku ungabona ukusebeza kancinci.

Qhubeka nokufunda

Kuba loop kwiPython

I-loop kwiPython ineempawu ezahlukileyo kunezinye iilwimi zokucwangcisa. Ndinishiya into endiyifundayo ukuze ndifumane okuninzi kwezona ziluphu zisetyenziswa kakhulu.

KwiPython yenzelwe ukuphinda-phinda into enokuphinda iphindwe, nokuba luluhlu, into, okanye enye into.

Ulwakhiwo olulandelayo lu

Qhubeka nokufunda

Ziqhutywa njani iifayile ze.py

ziqhuba njani iifayile ze.py ngekhowudi yePython

Los iifayile ezinolwandiso lwe-.py ziqulathe ikhowudi yolwimi lwenkqubo yePython. Ngale ndlela xa uphumeza ifayile ulandelelwano lwekhowudi luyenziwa.

Ngokungafaniyo ne- .sh ifayile eyenza imiyalelo enokuthi nayiphi na inkqubo yeLinux iphumeze, ukwenzela ukuba ifayile ye.py isebenze kuya kufuneka uyihlohle iPython.

Le yinto yokuqala ekufuneka uyenzile ukuba ufuna ukuqala ukufunda ukwenza inkqubo ngePython.

Qhubeka nokufunda

Ungaziguqula njani iitafile ukusuka kwi-PDF ukuya kwi-Excel okanye kwi-CSV ngeTabula

Ukupasa kunye nokuguqula i-pdf kwi-csv kwaye iphumelele

Ukujonga idatha yezembali ebonelelwe nguloo meteorological wokujonga esixekweni sam, ndiyabona ukuba Banikezela kuphela ngemizobo kunye nokukhuphela njengePDF. Andiqondi ukuba kutheni bengakuvumeli ukuba uzikhuphele kwi-csv, eya kuba luncedo ngakumbi kuye wonke umntu.

Ke bendikhangela enye Isisombululo sokudlulisa ezi tafile ukusuka kwi-pdf ukuya kwi-csv okanye ukuba umntu othile ufuna ukufomatha i-Excel okanye iOfisi yeLibre. Ndiyayithanda i-csv kuba nge-csv wenza yonke into onokuyiphatha nge-python kunye neelayibrari zayo okanye ungangenisa ngokulula kuyo nayiphi na ispredishithi.

Njengombono kukufezekisa inkqubo ezenzekelayo, into endiyifunayo siskripthi sokusebenza nePython kwaye kulapho uTabula engena khona.

Qhubeka nokufunda

Uyifaka njani iKeras kunye neTensorFlow ukusuka kwi-backend kwi-Ubuntu

Uyifaka njani ikeras kubuntu

Emva kokugqiba Inkqubo yokuFunda ngomatshini, Bendijonge apho ndiza kuqhubeka khona. Imeko zophuhliso ezisetyenzisiweyo kwikhosi ye-Octave / Matlab prototyping ayisiyiyo into esetyenziswa ngabantu, ke kuya kufuneka utsibele uye kumgangatho ophezulu. Phakathi kwabagqatswa ekucetyiswe mna kakhulu kukuba Iikhamera, zisebenzisa umva weTensorFlow. Andizukuya nokuba iiKera zibhetele kunezinye izixhobo okanye ezinye izikhokelo okanye nokuba ukhetha iTensorFlow okanye iTherano. Ndiza kuchaza nje ukuba inokufakwa njani ku-Ubuntu.

Kuqala ndizamile ukuyifaka kumaxwebhu amaphepha asemthethweni, kwaye bekungenakwenzeka, bendihlala ndinempazamo, umbuzo ongasombululwanga. Ekugqibeleni ndaya kufuna izifundo ezithile ngendlela yokufaka iicamera ku-Ubuntu Kwaye ndichithe iintsuku ezimbini ndichitha ixesha elininzi ebusuku. Ekugqibeleni ndiyifumene kwaye ndikushiyela indlela endenze ngayo ukuba inokuthi ikulungiselele indlela.

Njengoko siza kulandela amanyathelo acetyiswa ziiwebhusayithi endikushiya kwimithombo ekupheleni kwesifundo, siza kufaka iPIP ebendingenayo, ukulawula iiphakheji. kuba ekugqibeleni Kwi-linux yile nto kanye, inkqubo yolawulo lwephakheji ebhalwe kwi-python.

Sudo apt-fumana ukufaka i-python3-pip sudo apt faka i-python-pip

Qhubeka nokufunda