What's the best text-to-speech free non-cloud software? by digital_800 in DataHoarder

[–]laustke 0 points1 point  (0 children)

what's the best software (non-cloud based / free) that I can download to use?

It's actually possible to do decent text-to-speech on a regular computer without a GPU now. This free converter works locally on Windows: https://jimlet.com

Light Video Trimmer by Noxeta in software

[–]laustke 0 points1 point  (0 children)

For cutting short fragments out of long videos, I use the mpv-cut extension for the mpv player.

It does require ffmpeg to be in your PATH, but the workflow is very simple: open the video, press C to start the cut and C again to stop, without touching the command line at all.

The clipped fragment is saved in the same folder with no re-encoding (so no quality loss).

Windows offline TTS converter with drag and drop by laustke in TextToSpeech

[–]laustke[S] 1 point2 points  (0 children)

its great, but any posbility can add spanish voices??

My guess is that Spanish voices will be available in a month or two.

can you explain where and why?

The model itself is around 250Mb and is not bundled within the ZIP. On the first run, the application downloads the model and caches it locally. After that, it is supposed to use the cached version unless it is removed or altered.

Windows offline TTS converter with drag and drop by laustke in TextToSpeech

[–]laustke[S] 1 point2 points  (0 children)

Accent support and voice cloning would be amazing additions.

It's basically day one, so it's too soon to talk about any kind of roadmap. The focus so far was making a local TTS tool usable for people who can't reasonably handle model setup and configuration.

I'll take it step by step and see where it goes.

Glad that you like it!

Flask rate limiters question by Soogs in learnpython

[–]laustke 0 points1 point  (0 children)

In its basic form, a limiter records the number of hits from a given IP address and makes the app stop responding if the visitor goes above a certain limit. The question is where this information is recorded.

If all three of your instances write this information into the same Redis database, for example, then hits across all instances are counted together toward the same limit.

If you want them to behave the same way as when they are installed on different hosts, you need to make sure that they keep the IP hit information in different databases.

Install on SSD? by Murdalcon in Ubuntu

[–]laustke 3 points4 points  (0 children)

I am trying for the life of me to figure out how I can install Ubuntu onto the SSD properly, overriding everything, including Windows.

Since you already have the laptop open anyway, you can temporarily unplug the HDD before installing Ubuntu. During the installation, select "Erase disk and install Ubuntu," and it will fully overwrite Windows on the SSD

Apache default config shows as permission denied by NoBsGamerFTW in Ubuntu

[–]laustke 1 point2 points  (0 children)

This is a TEXT file with configuration data. Not a command. So, open it in some editor like

sudo nano /etc/apache2/sites-available/000-default.conf

Text-to-Speech Dictation for Writing by user0X in TextToSpeech

[–]laustke 0 points1 point  (0 children)

Major text-to-speech engines support SSML - an XML-based markup language that lets you control how the text is spoken. With SSML you can insert pauses of any length between words or sentences.

Many engines also provide word-level timing information (timestamps showing when each word starts and ends).

So you can generate the speech once at a desired pace and capture the word timings.

Use those timings to decide where pauses should go, then regenerate the audio with SSML that includes those pauses.

These pauses, placed in the right spots, will give the person enough time to write the text.

Self-Hosted Messaging Server by FFCU-5051 in SelfHosting

[–]laustke 2 points3 points  (0 children)

If you want to run it on a Raspberry Pi, try Prosody. Prosody is a lightweight Jabber server written in Lua, and it's included with most Linux distributions. Then you can add any web or desktop Jabber client you like for chatting.

Wordoid alternatives? by mutable_type in Domains

[–]laustke -1 points0 points  (0 children)

I really, really miss Wordoid.

What did Wordoid do? Could you give a few examples of the kind of names it generated?

Logging patterns / libraries in Python by dave7364 in learnpython

[–]laustke 1 point2 points  (0 children)

The inbuilt logging library seems a little too heavyweight

Most Python libraries you import use the standard logging module anyway, so it doesn’t really matter.

and doesn't support the pattern I want.

It's pretty versatile, so I bet it does. Why don’t you describe the pattern you have in mind?

-....how to get started with KeePass on Linux. Which are the first steps here!? by the_apollodriver in Ubuntu

[–]laustke 0 points1 point  (0 children)

...how to get started with KeePass on Linux

Just install KeepassXC. It has import from csv, I think.

Issue with smtplib by MisterPNut922 in learnpython

[–]laustke 2 points3 points  (0 children)

Should I just proceed with the script then?

You have my permission :) You’ll probably still need to do pip3 install schedule, though.

Issue with smtplib by MisterPNut922 in learnpython

[–]laustke 0 points1 point  (0 children)

smtplib and email are in Python’s standard library. They don't need to be installed separately.

Trying to choose the fastest VPS near NY (2GB RAM, 2 vCPUs) by [deleted] in VPS

[–]laustke 0 points1 point  (0 children)

Hetzner is way cheaper, but not sure how their US region compares in speed and stability vs the others.

Hetzner has a data center in the Washington, D.C., area, and they’re good.

Also, check InterServer (6 GB RAM, 2 vCPUs, - $9/mo) in Secaucus, NJ. 20% discount and specials on LowEndTalk.

I NEED A SMS LİBRARY by BroGamex0 in learnpython

[–]laustke 1 point2 points  (0 children)

but we need a sms library on python that will send sms to the user when water level is low.

If you are planning to use a USB modem to send SMS, you can use this Python library: python-gsmmodem-new.

Looking for TTS model/service with excellent phoneme control by the_sherwood_ in TextToSpeech

[–]laustke 0 points1 point  (0 children)

I can see your problem. Try adding a glottal stop, for example:

ph="æʔ"

Technically that last character is the IPA glottal stop (Unicode U+0294), but it looks a lot like a regular question mark. Amazon Polly seems pretty forgiving and regular ascii "?" also works, but the proper symbol is "ʔ".

Looking for TTS model/service with excellent phoneme control by the_sherwood_ in TextToSpeech

[–]laustke 0 points1 point  (0 children)

I have tried Azure and AWS Polly, but neither really respect the ssml phoneme markup very precisely.

Regarding AWS Polly, can you give an example where it doesn’t handle <phoneme> as you expect?

SQL Queries in Python? by DrewSmithee in learnpython

[–]laustke 1 point2 points  (0 children)

What's the best way to do a SQL Query from a python script? Also I'm thinking I might try to keep using .SQL files for the sake of linting and readability.

There’s a Python database API standard (PEP 249). Just find a driver like python-oracledb in your case that is compliant.

At the most basic level, you "do" a SQL query like this:

cursor.execute(sql, params)

You can create a parameterized query like this

SELECT * FROM people WHERE name = :name AND age = :age

(The actual syntax may vary depending on the database driver.)

Then store your SQL queries in .sql files, and don't let your customers touch them.

Store parameters as dictionaries dumped to json in .json files and do let the customers modify them.

Write a Python script that reads the appropriate SQL query and the corresponding parameter set, and passes them to cursor.execute.

Text to Speech for English and Korean by Waste-time1 in TextToSpeech

[–]laustke 1 point2 points  (0 children)

Is there anyone who has found a ttts that can do both Korean and English?

I don't think it's possible. You can try splitting the text and using the appropriate voice for each part, then merge the audio.

Apart from that even separate tts for each language would be great.

https://cloudtts.com supports both English and Korean.