Skip to main content

Pipecat plugin for Faseeh Arabic text-to-speech

Project description

pipecat-plugins-faseeh

Pipecat plugin for Faseeh Arabic text-to-speech.

Build real-time Arabic conversational AI agents using Pipecat with Faseeh's high-quality Arabic TTS voices.

Installation

pip install pipecat-plugins-faseeh

Configuration

Set your Faseeh API key as an environment variable:

export FASEEH_API_KEY="your-api-key"

Or pass it directly:

tts = FaseehTTSService(api_key="your-api-key", aiohttp_session=session)

Get your API key at app.faseeh.ai.

Parameters

Parameter Type Default Description
api_key str env FASEEH_API_KEY Faseeh API key
voice_id str ar-hijazi-female-2 Voice identifier
model str faseeh-v1-preview TTS model
stability float 0.5 Voice consistency (0.0-1.0)
speed float 1.0 Speech rate (0.7-1.2)
base_url str https://api.faseeh.ai/api/v1 API base URL

Usage

import aiohttp
from pipecat.pipeline.pipeline import Pipeline
from pipecat_plugins_faseeh import FaseehTTSService

async with aiohttp.ClientSession() as session:
    tts = FaseehTTSService(
        api_key="your-api-key",
        aiohttp_session=session,
        voice_id="ar-hijazi-female-2",
        model="faseeh-v1-preview",
        params=FaseehTTSService.InputParams(stability=0.5, speed=1.0),
    )

    # Add to your Pipecat pipeline
    pipeline = Pipeline([..., tts, ...])

Runtime settings update

Change voice, model, speed, or stability mid-conversation:

from pipecat.frames.frames import TTSUpdateSettingsFrame

await task.queue_frame(TTSUpdateSettingsFrame(settings={"voice_id": "ar-emirati-male-1"}))
await task.queue_frame(TTSUpdateSettingsFrame(settings={"speed": 1.1, "stability": 0.8}))

Running the example

# Install dependencies
pip install pipecat-plugins-faseeh "pipecat-ai[daily,openai,deepgram,silero]" python-dotenv loguru

# Copy and fill in your API keys
cp .env.example .env

# Run
python examples/faseeh_tts_example.py

The example auto-creates a Daily room and logs the URL — open it in your browser to talk to the bot.

Available voices

See the full voice library at docs.faseeh.ai.

Pipecat compatibility

Tested with pipecat-ai >= 0.0.100.

License

Apache 2.0

Maintained by

Actualize

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

pipecat_plugins_faseeh-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

pipecat_plugins_faseeh-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pipecat_plugins_faseeh-0.1.0.tar.gz.

File metadata

  • Download URL: pipecat_plugins_faseeh-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pipecat_plugins_faseeh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84ac0ac556890f5740618c62df4c7e19f51be3905a604056ec6f947be9b4fc2c
MD5 8cc8ff539815c0769860d36575148ac6
BLAKE2b-256 5343daf3652cbab67deac75e21894fbfebc2f3348e24b0cc97e4be5989fe012a

See more details on using hashes here.

File details

Details for the file pipecat_plugins_faseeh-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pipecat_plugins_faseeh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6628e1268f2f5f36e7270fd9dd4fe62d98cbed00c63afea3a71adbc234e9344
MD5 e7bb939608a573396d1b14360e621c3d
BLAKE2b-256 dcbc52bed5e5db248499d17b9cf8e9172618889cfafcdfe339dbce65ee39ad68

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