File: voicelive_preparer.py

package info (click to toggle)
python-azure 20251118%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 783,356 kB
  • sloc: python: 6,474,533; ansic: 804; javascript: 287; sh: 205; makefile: 198; xml: 109
file content (10 lines) | stat: -rw-r--r-- 387 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import functools
import os
from devtools_testutils import AzureRecordedTestCase, EnvironmentVariableLoader, recorded_by_proxy

VoiceLivePreparer = functools.partial(
    EnvironmentVariableLoader,
    "voicelive",
    voicelive_openai_endpoint=os.getenv("VOICELIVE_OPENAI_ENDPOINT", "fake_endpoint"),
    voicelive_openai_api_key=os.getenv("VOICELIVE_OPENAI_API_KEY", "fake_api_key"),
)