support speed param when calling OpenAI TTS (#412) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
lfs: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: install ffmpeg | |
run: sudo apt-get update && sudo apt-get install -y ffmpeg | |
- name: install packages | |
run: | | |
pip3 install pytest pytest-asyncio pytest-timeout './livekit-agents[codecs]' psutil | |
pip3 install -r ./tests/test-requirements.txt | |
for dir in livekit-plugins/*; do | |
pip3 install $dir | |
done | |
- name: Run tests | |
env: | |
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }} | |
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }} | |
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }} | |
DEEPGRAM_API_KEY: ${{ secrets.DEEPGRAM_API_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
ELEVEN_API_KEY: ${{ secrets.ELEVEN_API_KEY }} | |
CARTESIA_API_KEY: ${{ secrets.CARTESIA_API_KEY }} | |
AZURE_SPEECH_KEY: ${{ secrets.AZURE_SPEECH_KEY }} | |
AZURE_SPEECH_REGION: ${{ secrets.AZURE_SPEECH_REGION }} # nit: doesn't have to be secret | |
GOOGLE_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CREDENTIALS_JSON }} | |
GOOGLE_APPLICATION_CREDENTIALS: google.json | |
run: | | |
echo $GOOGLE_CREDENTIALS_JSON > google.json | |
pytest --asyncio-mode=auto --timeout=60 . |