Skip to main content

Krisp turn detection plugin for Vision Agents

Project description

Krisp Plugin

This plugin provides Krisp-based turn detection capabilities for Vision Agents using the Krisp Audio SDK.

Features

  • Turn Detection: Real-time detection of speaking turns using Krisp's turn-taking model
  • High Accuracy: Leverages Krisp's advanced audio processing for reliable turn detection
  • Configurable: Adjustable confidence thresholds and frame durations
  • Low Latency: Optimized for real-time conversational AI applications

Installation

pip install vision-agents-plugins-krisp

Note: This plugin requires the Krisp Audio SDK and a valid Krisp model file (.kef).

Usage

from vision_agents.plugins import krisp

# Create turn detector
turn_detector = krisp.TurnDetection(
    model_path="path/to/krisp-viva-tt-v1.kef",
    frame_duration_ms=15,
    confidence_threshold=0.5
)

# Start detection
turn_detector.start()

# Process audio
await turn_detector.process_audio(audio_data, user_id="user123")

# Stop detection
turn_detector.stop()

Configuration

  • model_path: Path to the Krisp model file (.kef)
  • frame_duration_ms: Duration of audio frames in milliseconds (10, 15, 20, 30, or 32)
  • confidence_threshold: Threshold for turn detection (0.0 to 1.0)

Requirements

  • Python 3.10+
  • krisp-audio SDK
  • vision-agents-core
  • Krisp model file

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_krisp-0.0.18.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_agents_plugins_krisp-0.0.18-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_krisp-0.0.18.tar.gz.

File metadata

File hashes

Hashes for vision_agents_plugins_krisp-0.0.18.tar.gz
Algorithm Hash digest
SHA256 9e7ce63bc272b50269b953e02f2b25377eaaf22178c2e418a6994ac4e7daa235
MD5 4994fe9e506d51e3e803a561f0c0d282
BLAKE2b-256 b6d134ff465016722c06436678d4a00826053b56259bb3ffa3b67c33d585dd95

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_krisp-0.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for vision_agents_plugins_krisp-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 e07e2337d92e13e21a5676012d37c4c5a9b7fc1c344a4d4fe8c1970ff1eeebab
MD5 bf0b27d2d97d841659d894b827e3cde1
BLAKE2b-256 845e8b01e5913ecb6aa7b473e5f4cac09a45d64f5663eeba90945893b8bc136b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page