from app.audio.endpoints.input.base import AudioInputEndpoint
from app.schemas import AudioChunk, EndpointCapabilities

class LocalDefaultInput(AudioInputEndpoint):
    endpoint_id = "local-default-mic"

    async def capabilities(self) -> EndpointCapabilities:
        return EndpointCapabilities(
            id=self.endpoint_id,
            kind="local-default",
            direction="input",
            latency_class="low",
            supports_barge_in=True,
            default=True,
        )

    async def open(self) -> None:
        return None

    async def read_chunk(self) -> AudioChunk:
        return AudioChunk(data=b"", format="wav", timestamp_ms=0)

    async def close(self) -> None:
        return None
