semvec/pypi-packages huggingface dataset:
alertapi 0.0.7
The Air Raid Alert API wrapper for Python3
License: MIT
Requires Python: >=3.8

<h1 align="center">AlertAPI</h1>
<p>
Async and static typed Air Raid Alert microframework for Python3.

Python 3.8, 3.9 and 3.10 are currently supported.
</p>

## Installation
Install AlertAPI from PyPi with the following command:

```bash
pip install alertapi
```

----

## Updating

```bash
pip install --upgrade alertapi
```

----

## Start up basic API client

```py
import asyncio

import alertapi


async def main() -> None:
    client = alertapi.APIClient(access_token='...')
    print(await client.fetch_states())


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

----

## Example

```py
import asyncio

import alertapi


async def main() -> None:
    client = alertapi.APIClient(access_token='...')

    print('State list:', await client.fetch_states())
    print('First 5 active alerts:', await client.fetch_states(with_alert=True, limit=5))
    print('Inactive alerts:', await client.fetch_states(with_alert=False))
    print('Kyiv info:', await client.fetch_state(25))
    print('Kyiv info:', await client.fetch_state('Kyiv'))
    print('Is active alert in Lviv oblast:', await client.is_alert('Lviv oblast'))


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

----

## On run GatewayClient 

```py
import alertapi

client = alertapi.GatewayClient(access_token='...')


@client.listen(alertapi.ClientConnectedEvent)
async def on_client_connected(event: alertapi.ClientConnectedEvent) -> None:
    states = await event.api.fetch_states()
    print(states)


@client.listen(alertapi.PingEvent)
async def on_ping(event: alertapi.PingEvent) -> None:
    print('Ping event')


@client.listen(alertapi.StateUpdateEvent)
async def on_state_update(event: alertapi.StateUpdateEvent) -> None:
    print('State updated:', event.state)


client.connect()
```

----

## Python optimization flags
CPython provides two optimisation flags that remove internal safety checks that are useful for development, and change other internal settings in the interpreter.

- python main.py - no optimisation - this is the default.
- python -O main.py - first level optimisation - features such as internal
    assertions will be disabled.
- python -OO main.py - second level optimisation - more features (**including
    all docstrings**) will be removed from the loaded code at runtime.

**A minimum of first level of optimizations** is recommended when running applications in a production environment.
nendo-plugin-voicegen-styletts2 0.1.1
A text to speech plugin based on StyleTTS2.
License: MIT
Requires Python: >=3.8,<3.11
Keywords: AI,ML,generative,music,okio,nendo,audio generation,TTS,StyleTTS2,text to speech,zero-shot voice cloning,voice cloning

# Nendo Plugin VoiceGen StyleTTS2

<br>
<p align="left">
    <img src="https://okio.ai/docs/assets/nendo_core_logo.png" width="350" alt="nendo core">
</p>
<br>

<p align="left">
<a href="https://okio.ai" target="_blank">
    <img src="https://img.shields.io/website/https/okio.ai" alt="Website">
</a>
<a href="https://twitter.com/okio_ai" target="_blank">
    <img src="https://img.shields.io/twitter/url/https/twitter.com/okio_ai.svg?style=social&label=Follow%20%40okio_ai" alt="Twitter">
</a>
<a href="https://discord.gg/gaZMZKzScj" target="_blank">
    <img src="https://dcbadge.vercel.app/api/server/XpkUsjwXTp?compact=true&style=flat" alt="Discord">
</a>
</p>

---

A text to speech plugin based on StyleTTS2. 

## Requirements

> [!WARNING]
> **This plugin is currently only supported on Linux.**
> We are actively working on adding support for MacOS.
> But since we are using `espeak-ng` as a backend, we are limited to Linux.

Please install the requirements for `StyleTTS2`: 

```sh
pip install git+https://github.com/resemble-ai/monotonic_align.git
sudo apt-get install espeak-ng
```


## Installation

1. [Install Nendo](https://github.com/okio-ai/nendo#installation)
2. `pip install nendo-plugin-voicegen-styletts2`

## Usage

Take a look at a basic usage example below.
For more detailed information and other plugin examples, please refer to the [documentation](https://okio.ai/docs/plugins).

```pycon
>>> from nendo import Nendo
>>> nd = Nendo(plugins=["nendo_plugin_voicegen_styletts2"])
>>> track = nd.library.add_track(file_path="path/to/file.mp3")

>>> track = nd.plugins.voicegen_styletts2(track=track)
>>> track.play()
```