• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
yjyoon / whisper_server_speaches star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
whisper_server_speachestestsconftest.py
Download as .zip file
File name
Commit message
Commit date
.github/workflows
chore(deps): update astral-sh/setup-uv action to v4
2024-12-16
configuration
feat: add instrumentation
2024-12-17
docs
docs: initialize mkdocs
2024-10-03
examples
refactor(example): remove unnecessary dependencies
2024-11-02
scripts
chore: misc changes
2024-10-03
src/speaches
feat: support BatchedInferencePipeline (#169)
2024-12-17
tests
fix: piper is imported on ARM
2024-11-01
.dockerignore
chore: update .dockerignore
2024-11-01
.envrc
init
2024-05-20
.gitattributes
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.7.2
2024-11-02
.gitignore
chore: update .gitignore
2024-07-03
.pre-commit-config.yaml
chore(deps): update pre-commit hook detachhead/basedpyright-pre-commit-mirror to v1.23.0
2024-12-16
Dockerfile.cpu
feat: add instrumentation
2024-12-17
Dockerfile.cuda
feat: add instrumentation
2024-12-17
LICENSE
init
2024-05-20
README.md
Improved readability in README.md
2024-10-09
Taskfile.yaml
feat: add instrumentation
2024-12-17
audio.wav
docs: update README.md
2024-05-27
compose.yaml
feat: add instrumentation
2024-12-17
flake.lock
deps: update flake
2024-11-01
flake.nix
chore(deps): add loki and tempo package to flake
2024-12-17
mkdocs.yml
docs: initialize mkdocs
2024-10-03
observability-compose.yaml
feat: add instrumentation
2024-12-17
pyproject.toml
feat: add instrumentation
2024-12-17
renovate.json
feat: renovate handle pre-commit
2024-11-01
uv.lock
feat: add instrumentation
2024-12-17
File name
Commit message
Commit date
__init__.py
feat: add /v1/models and /v1/model routes #14
2024-06-03
api_model_test.py
chore: auto-fix ruff errors
2024-10-01
api_timestamp_granularities_test.py
chore: auto-fix ruff errors
2024-10-01
conftest.py
feat: tts
2024-11-01
model_manager_test.py
feat: model unloading
2024-10-01
openai_timestamp_granularities_test.py
chore: auto-fix ruff errors
2024-10-01
speech_test.py
fix: piper is imported on ARM
2024-11-01
sse_test.py
chore: auto-fix ruff errors
2024-10-01
Fedir Zadniprovskyi 2024-11-01 ed63191 feat: tts UNIX
Raw Open in browser Change history
from collections.abc import AsyncGenerator, Generator import logging import os from fastapi.testclient import TestClient from httpx import ASGITransport, AsyncClient from huggingface_hub import snapshot_download from openai import AsyncOpenAI import pytest import pytest_asyncio from faster_whisper_server.main import create_app disable_loggers = ["multipart.multipart", "faster_whisper"] def pytest_configure() -> None: for logger_name in disable_loggers: logger = logging.getLogger(logger_name) logger.disabled = True # NOTE: not being used. Keeping just in case @pytest.fixture def client() -> Generator[TestClient, None, None]: os.environ["WHISPER__MODEL"] = "Systran/faster-whisper-tiny.en" with TestClient(create_app()) as client: yield client @pytest_asyncio.fixture() async def aclient() -> AsyncGenerator[AsyncClient, None]: os.environ["WHISPER__MODEL"] = "Systran/faster-whisper-tiny.en" async with AsyncClient(transport=ASGITransport(app=create_app()), base_url="http://test") as aclient: yield aclient @pytest_asyncio.fixture() def openai_client(aclient: AsyncClient) -> AsyncOpenAI: return AsyncOpenAI(api_key="cant-be-empty", http_client=aclient) @pytest.fixture def actual_openai_client() -> AsyncOpenAI: return AsyncOpenAI( base_url="https://api.openai.com/v1" ) # `base_url` is provided in case `OPENAI_API_BASE_URL` is set to a different value # TODO: remove the download after running the tests @pytest.fixture(scope="session", autouse=True) def download_piper_voices() -> None: # Only download `voices.json` and the default voice snapshot_download("rhasspy/piper-voices", allow_patterns=["voices.json", "en/en_US/amy/**"])

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up