Questions tagged [gtts]

For questions about the Google Text-to-Speech (gTTS) Python library and CLI tool.

gTTS (Google Text-to-Speech) is a library and tool which interfaces with the Google Translate text-to-speech API.

References:

131 questions
0
votes
0 answers

I am unable to use this gTTS module and I can't hear any text in my speakers and it's also showing me adobe reader dialogue

I have added the image for better understanding: The code from gtts import gTTS import os mytext = "Hi, this is an example of converting text to audio. This is a bot speaking here, not a real human!" audio = gTTS(text=mytext, lang="en",…
0
votes
0 answers

Python File Doesn't Run When Windows Starts

I have a problem. There are two Python files in the startup file. One of them runs seamlessly when Windows starts up, but the other one does not run automatically even though the code is correct. But interestingly, it works when I open it…
Eisberg
  • 1
  • 1
0
votes
0 answers

No module named 'gtts'

i install gtts with : pip install gTTS but Pycharm doesnt import it correctly :/ Python version : 3.7 (i use this version for use pygame) pip version : 22.3.1 I reinstalled python but doesnt work my name file is test (not gtts)
Aphram
  • 1
0
votes
0 answers

{% load gTTS %} in template make mistake 'gTTS' is not a registered tag library

I make a quiz app with Django I want to add text-to-speech advantage with google I recive the below error message: gTTS' is not a registered tag library when I write in the template {% load gTTS %}
0
votes
0 answers

gTTS: converting text-to-speech / max retries exceeded with url / TLS/SSL connection has been closed

I am building a simple PDF Extractor and mp3 converter. The first part that is not posted reads in a PDF and extracts the body and saves it in a .txt. The second part takes the .txt file and uses gTTS to convert it to mp3. I have read that there is…
ywerner
  • 15
  • 4
0
votes
0 answers

use of gTTS in Django project

i want to use gTTS in my Django project. Accordingly i installed django-gtts(pip install Django-Gtts). It is installed successfully.. later i added 'gTTS' under INSTALLED-APPS of setting.py file. Then run the server and also tried makemigrations…
0
votes
1 answer

Gtts library error. I don't know why this error are happening or how to fix them

I am tried to convert pdf to an audio file but when ever I run my code I get a bunch error from the gtts library. If there is a better library to use that does not sound like a robot please let me know the errors are https://pastebin.com/Uwnq1MgS…
liam
  • 11
  • 1
0
votes
0 answers

Python gTTS not found

I want to import gtts. I wrote "import gtts" But it shows me a failure because he didn't know gTTS. I've already installed gtts with "pip install gtts" but it still didn't work. Please help. Thanks error: PS C:\Users\dealt> &…
0
votes
0 answers

I was using gTTS module to create a chatterbot but this error pops out in my linux that is zorin os

I was using gTTS to create a chattterbot using python on zorin os but I got this error from gTTS how to solve this problem ? Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/gtts/tts.py", line 310, in write_to_fp …
0
votes
0 answers

My script runs fine until I import gTTS. Why does gTTS stop my script from running?

The below script only runs when "from gtts import gTTs" is commented out. I have gTTS correctly installed on my system but it is not working. #from gtts import gTTS #uncomment this line and the script will not run import os import…
0
votes
1 answer

Why I have to pause with gtts to hear the sound

I had this script working to hear an audio from text with gtts without having to save the mp3, using BytesIo, but now if I do not put a time.sleep at the end I cannot hear the sound. Why? Is there a solution different from putting a pause to the…
PythonProgrammi
  • 22,305
  • 3
  • 41
  • 34
0
votes
2 answers

Can gTTS speak a list(PYTHON)

Is it possible to speak a list. Right now I am using #Minimum reproducable import tkinter as tk from gtts import gTTS from io import BytesIO import pygame def play(): words = [one,boy,girl,man,woman,two] for i in words: …
GCIreland
  • 145
  • 1
  • 16
0
votes
0 answers

Python gTTs Voice

Following the code, I want to convert voice from the text. But I take error. File "C:\Users\fatma\Documents\python\voice_text\textaudio.py", line 16, in output.save("output.mp3") File…
FGY
  • 77
  • 6
0
votes
0 answers

python using a progress bar in gTTS module

I have installed gTTS module (pip install gTTS) in my venv. I want to have a progress bar for text to speech process. Is that possible with gTTS. If not which module can i use alternative? I want something like: def my_callback(percent): …
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
1 answer

Set Speed of Playsound Python Module

I would love to set the play my example.mp3 to 1.5 and let it play faster while the script is running. Is it possible to do? I googled and didn´t found a solution which worked. from playsound import playsound from gtts import gTTS kompletterText =…
Sawa
  • 3
  • 2
1 2 3
8 9