- Added SoundNormalizerService for normalizing audio files with support for one-pass and two-pass normalization methods. - Introduced API endpoints for normalizing all sounds and specific sounds by ID, including support for force normalization and handling of already normalized sounds. - Created comprehensive test suite for the sound normalizer service and its API endpoints, covering various scenarios including success, errors, and edge cases. - Refactored sound scanning service to utilize SHA-256 for file hashing instead of MD5 for improved security. - Enhanced logging and error handling throughout the sound normalization process.
16 lines
551 B
Python
16 lines
551 B
Python
"""API v1 package."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import auth, main, socket, sound_normalizer, sounds
|
|
|
|
# V1 API router with v1 prefix
|
|
api_router = APIRouter(prefix="/v1")
|
|
|
|
# Include all route modules
|
|
api_router.include_router(main.router, tags=["main"])
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["authentication"])
|
|
api_router.include_router(socket.router, tags=["socket"])
|
|
api_router.include_router(sounds.router, tags=["sounds"])
|
|
api_router.include_router(sound_normalizer.router, tags=["sound-normalization"])
|