Skip to content

01Kevin01/SesliKitapOkuma

Repository files navigation

SesliKitapOkuma

Sesli Kitap Okuma

Türkçe Bu Python kodu, kullanıcı tarafından belirtilen bir dosya adını okur ve dosya türüne göre metni sesli olarak okur. Kod, kullanıcının bir PDF, TXT, DOCX, ODT veya RTF dosyası seçmesine izin verir. Dosya seçimi yapıldıktan sonra, ilgili dosya okuma işlevi çağrılır ve dosyadaki metin çıkarılır. Ardından, metin, Türkçe bir konuşmacı kullanarak sesli olarak okunur. Kodun içindeki okuma fonksiyonları, herhangi bir belge formatından (PDF, TXT, DOCX, ODT ve RTF) metin çıkarabilen kütüphaneler kullanır. Kullanılan kütüphaneler: PyPDF2 (PDF), io (TXT), python-docx (DOCX), odfpy (ODT) ve pyth (RTF). Bu kod, özellikle görme engelliler için veya el serbest metin okuma için yararlı olabilir.

English This Python code reads a user-specified filename and reads the text aloud based on the file type. The code allows the user to select a PDF, TXT, DOCX, ODT or RTF file. After the file selection is made, the corresponding file read function is called and the text in the file is extracted. Then the text is read aloud using a Turkish speaker. The read functions inside the code use libraries that can extract text from any document format (PDF, TXT, DOCX, ODT and RTF). Libraries used: PyPDF2 (PDF), io (TXT), python-docx (DOCX), odfpy (ODT) and pyth (RTF). This code can be especially useful for the visually impaired or for hands-free text reading.