semvec/pypi-packages huggingface dataset:
speech-engine 0.2.0
Python package for synthesizing text into speech
License: MIT
Requires Python: >=3.7
Keywords: speech_engine, text2speech, text-to-speech, TTS, speech synthesis, audio generation, natural language processing, language processing, voice synthesis, speech output, speech generation, language synthesis, voice output, audio synthesis, voice generation

# Speech Engine

Speech Engine is a Python package that provides a simple interface for synthesizing text into speech using different TTS engines, including Google Text-to-Speech (gTTS) and Wit.ai Text-to-Speech (Wit TTS).

## Installation

You can install `speech-engine` using pip:

```bash
pip install speech-engine
```

## Usage
### TTS_GOOGLE
```python
from speech_engine import TTS_Google, FileExtensionError

# Instantiate TTS_Google
tts = TTS_Google()

# Set the language and other options
tts.set_language('en')
tts.set_slow(False)

# Synthesize and play speech
tts.speak("Hello, world!")

# Synthesize and save speech as an audio file
try:
    tts.save("Hello, world!", "output.mp3")
except FileExtensionError as e:
    print(e.message)
```

### TTS_Witai
```python
from speech_engine import TTS_Witai

# Instantiate TTS_Witai with the Wit.ai auth token
tts = TTS_Witai(your_authtoken)

# Set the voice
tts.set_voice('Colin')

# Synthesize and play speech
tts.speak("Hello, world!")

# Synthesize and save speech as an audio file
tts.save("Hello, world!", "output.wav")


# Get available voices
voices = tts.get_voices()
print(voices)
```

### TTS_Openai
```python
from speech_engine import TTS_Openai

# Instantiate TTS_Openai with the Openai Api key
tts = TTS_Openai(your_apikey)

# Set the voice
tts.set_voice('alloy')

# Synthesize and play speech
tts.speak("Hello, world!")

# Synthesize and save speech as an audio file
tts.save("Hello, world!", "output.mp3")

# Get available voices
voices = tts.get_voices()
print(voices)
```

### TTS_Deepgram
```python
from speech_engine import TTS_Deepgram

# Instantiate TTS_Openai with the Openai Api key
tts = TTS_Deepgram(your_apikey)

# Set the voice
tts.set_voice('aura-angus-en')

# Synthesize and play speech
tts.speak("Hello, world!")

# Synthesize and save speech as an audio file
tts.save("Hello, world!", "output.wav")


# Get available voices
voices = tts.get_voices()
print(voices)
```
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/PraaneshSelvaraj/speech_engine/blob/main/LICENSE) file for details.

## Contributions
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
baseline-warden 0.1.1
Baseline compatibility gate for web projects
License: MIT
Requires Python: >=3.11

# baseline-warden

Pre-commit/CI guardrail for Baseline support in HTML/CSS. Scans your code, maps features to Web Baseline (Web Status + MDN BCD), and flags anything not widely/newly available.

## Quick start

Install uv (one‑liner):

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```

Install Baseline Warden from PyPI with uv and scan:

```bash
uv venv .venv && source .venv/bin/activate
uv pip install baseline-warden

bw sync --lock                   # build a Baseline snapshot
bw scan --out console,json       # fails on limited; warns on unknown
# Tip: add --summary-only for compact console output

Supported Python versions: 3.11, 3.12, and 3.13. The example workflows use Python 3.13, and CI tests all three.
```

## What it checks

- Files: .html/.htm/.jinja/.jinja2 and .css (others ignored)
- Findings: Baseline status per BCD key (widely/newly/limited/unknown)
- Outputs: console (use `--summary-only` to keep it brief), `report.json`, GitHub annotations
- Noise control: ignores global HTML attrs (class/id/aria-*), custom property declarations (`--foo`), descriptor-only at‑rules (@font-face/@counter-style/@page); falls back value→property when helpful

## Integrations

- Pre-commit (blocking by default):
  ```yaml
  - repo: local
    hooks:
      - id: baseline-warden
        name: baseline-warden
        entry: bw scan --out console --summary-only --config baseline-warden.toml
        language: system
        files: '\\.(html|htm|jinja|jinja2|css)$'
  ```

GitHub Actions (minimal working example):
  ```yaml
  name: Baseline Warden

  on:
    pull_request:
    push:
      branches:
        - main

  jobs:
    baseline:
      runs-on: ubuntu-latest
      steps:
        - name: Checkout
          uses: actions/checkout@v4

        - name: Set up Python
          uses: actions/setup-python@v5
          with:
            python-version: "3.13"

        - name: Install uv
          run: pip install uv

        - name: Sync dependencies
          run: uv sync --locked

        - name: Run Baseline scan
          run: uv run bw scan --out console --ci
  ```

- Ensure `baseline.lock.json` is committed (recommended). If you prefer to build it in CI, add a step before the scan: `uv run bw sync --lock`.

## Configuration

Defaults usually “just work” for common layouts. For full options and examples, see the Configuration guide: [docs/CONFIG.md](docs/CONFIG.md).

## Contributing

See the contributing guide: [CONTRIBUTING.md](CONTRIBUTING.md) for developer setup and guidelines.