mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
21 lines
324 B
Python
21 lines
324 B
Python
"""Constants for the Voice over IP integration."""
|
|
|
|
from typing import Final
|
|
|
|
DOMAIN = "voip"
|
|
|
|
RATE = 16000
|
|
WIDTH = 2
|
|
CHANNELS = 1
|
|
RTP_AUDIO_SETTINGS = {
|
|
"rate": RATE,
|
|
"width": WIDTH,
|
|
"channels": CHANNELS,
|
|
"sleep_ratio": 0.99,
|
|
}
|
|
|
|
CONF_SIP_PORT = "sip_port"
|
|
CONF_SIP_USER = "sip_user"
|
|
|
|
STORAGE_VER: Final = 1
|