Hi everyone. I’m mostly over in the cloud forums, but I built something with ElevenLabs and wanted to share.
I made a Slack bot that reads out Jira ticket updates in a custom voice. It watches for changes, uses the ElevenLabs API to generate speech, and posts the audio in a channel. It’s like having a team assistant announce ticket progress. 😅
Here’s the core part of my Python script that calls the API:
```python
def generate_announcement(text, voice_id):
url = "https://api.elevenlabs.io/v1/text-to-speech/" + voice_id
headers = {
"xi-api-key": ELEVEN_LABS_API_KEY,
"Content-Type": "application/json"
}
data = {
"text": text,
"voice_settings": {
"stability": 0.5,
"similarity_boost": 0.8
}
}
response = requests.post(url, json=data, headers=headers)
# Save audio file and upload to Slack...
```
I used a cloned voice of our project manager for the “ticket resolved” updates. It works pretty well, but sometimes the stability setting makes it sound a bit robotic on longer sentences. Still tuning that.
Has anyone else hooked ElevenLabs into their work tools? I’d be curious about best practices for voice settings in a busy channel, or if there are cost traps to watch for with frequent small audio generation.