semvec/pypi-packages huggingface dataset:
livekit-plugins-turn-detection 1.0.1
End of utterance detection for LiveKit Agents
Requires Python: >=3.11
Keywords: agent, ai, audio, livekit

# LiveKit Turn Detection Plugin (Vietnamese)

A specialized turn detection plugin for LiveKit Agents, optimized for Vietnamese language contexts. This plugin uses a local ONNX model to predict the end of a user's turn with high accuracy and low latency.

## Features

- **Vietnamese Optimized**: Fine-tuned for Vietnamese conversational patterns.
- **Local Inference**: Runs ONNX model locally for privacy and speed.
- **Context Aware**: Considers preceding assistant messages for better prediction accuracy.
- **Lightweight**: Uses `SafeTensor` / `ONNX` quantization for minimal memory footprint.

## Development Workflow

```mermaid
flowchart TD
    Train[Train BERT Model] -->|Export| Export[Export to ONNX]
    Export -->|Copy & Replace| Replace[Replace livekit/plugins/turn_detection/model_quantized.onnx]
    Replace -->|Build| Build[Build Wheel .whl]
    Build -->|Push| Push[Push to S3 or PyPI]
    Push -->|Install via uv/pip| Install[Install in Target Project]
```

## Build Instructions

You can build the package wheel using `uv` (recommended) or `build`.

### Build Wheel

Run the build command in the project root:

```bash
uv build
```

This will create a `.whl` file in the `dist/` directory (e.g., `dist/livekit_plugins_turn_detection-1.0.0-py3-none-any.whl`).

## Installation

You can verify the build and install the generated wheel file directly into your environment:

```bash
pip install dist/livekit_plugins_turn_detection-1.0.0-py3-none-any.whl
```

## Usage

Integrate the `TurnDetectionModel` into your LiveKit `VoicePipelineAgent`.

### Basic Integration

```python
from livekit.agents import JobContext, WorkerOptions, cli
from livekit.agents.voice import Agent, AgentSession
from livekit.plugins import openai, silero
from livekit.plugins.turn_detection import TurnDetectionModel

class Assistant(Agent):
    def __init__(self) -> None:
        super().__init__()

async def entrypoint(ctx: JobContext):
    await ctx.connect()

    session = AgentSession(
        vad=silero.VAD.load(),
        stt=openai.STT(language="vi"),
        llm=openai.LLM(),
        tts=openai.TTS(),
        # Initialize the turn detector
        turn_detection=TurnDetectionModel(threshold=0.5),
    )

    await session.start(
        agent=Assistant(),
        room=ctx.room
    )

if __name__ == "__main__":
    cli.run_app(WorkerOptions(entrypoint_fnc=entrypoint))
```

### Configuration

The `TurnDetectionModel` accepts the following parameters:

- `threshold` (float, default `0.5`): Probability threshold (0.0 - 1.0) to trigger end-of-turn. Higher values reduce false interruptions but may increase latency.
bitpay 7.0.8
Accept bitcoin with BitPay
Requires Python: >=3.9
Keywords: bitcoin, payments, crypto, cash, ethereum, online payments

<img src="https://bitpay.com/_nuxt/img/bitpay-logo-blue.1c0494b.svg" width="150">

# BitPay Python Client
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/bitpay/python-bitpay-client/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/bitpay.svg?style=flat-square)](https://pypi.org/project/bitpay)

Full implementation of the BitPay Payment Gateway. This library implements BitPay's [Cryptographically Secure RESTful API](https://developer.bitpay.com/reference/concepts).

## Support

* https://github.com/bitpay/python-bitpay-client/issues
* https://support.bitpay.com

## Contribute

To contribute to this project, please fork and submit a pull request.

## License

MIT License

Copyright (c) 2021 BitPay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.