Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/en3rgy/remotetts


https://github.com/en3rgy/remotetts

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# RemoteTTS
The software realises a text-to-speech application using the operating systems TTS features. The text is provided via a TCP/UDP interface.

In addition, the software reports is state depending on the hosts power state, e.g. "bye-bye" when the host is goind to suspend or "alive" after it resumed to indicate the availability of the service. Therefore, `1` resp. `0` is send while 1 represents *service aliv*e and 0 indicates a *shutdown / bye-bye* of the service.

Using MS Windows, the program can detect resume and suspend events on its own an reports the status. This feature is not implemented for linux os.

Following a [StackOverFlow thread](https://stackoverflow.com/questions/23901419/how-to-capture-suspend-event-in-qt-linux) On linux you can put the following shell script in /etc/pm/sleep.d which executes a program with arguments. You can start a program and notify your main application in some way :
```
#!/bin/bash
case $1 in
suspend)
#suspending to RAM
/Path/to/Program/remotetts --byebye
;;
resume)
#resume from suspend
sleep 3
/Path/to/Program/remotetts --alive
;;
esac
```

The software provides a simple GUI for configuration.

A notification sound can be played prior to speak the submitted text (attention getter).

The project moved from [SourceForge](https://sourceforge.net/projects/remotetts/) to GitHub end of February 2024.

## Commandline Arguments

### Synopsis
```
remotetts [argument]
```

### Description

*No argument*   Start with GUI


--alive   Sending *resumed* messag and exit


--byebye   Sendimng *going to suspend* message and exit.

## IP-Interface
The software takes incoming ASCII strings, starting with a trigger word.

Some special characters can be submitted using the HTML-Unicode replacement codes:
| HTML-Code | Special Character |
| --- | --- |
| `°` | ° |
| `²`| ² |
| `³`| ³ |
| `ö`| ö |
| `ü`| ü |
| `Ä`| Ä |
| `Ö`| Ö |
| `Ü`| Ü |
| `ß` | ß |

### Synopsis
```
[trigger][argument]
```

### Description

| Trigger | Argument | Example message | Note |
| --- | --- | --- | --- |
| PLAY | WAV file to be played | `PLAYsound.wav` | The path to search for audio files can be configured. |
| SAY | Text to be saied | `SAYHello World`| All incomming txts are stored in a pipe. If the system receives a SAY command and is not already speaking / playing, an introsoud is put before the SAY-text. |

## Dvelopment Environment

* Qt 6.5.3 and MinGw