Skip to content

Commit c5c44ea

Browse files
authored
Make sure all .fernignored .py files have an accurate comment on top (#291)
1 parent 4b08cb1 commit c5c44ea

12 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/hume/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by Fern from our API Definition.
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
22

33
import typing
44

src/hume/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was auto-generated by Fern from our API Definition.
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
22

33
import typing
44

src/hume/core/websocket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
import typing
23

34

src/hume/empathic_voice/chat/audio/asyncio_utilities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
import dataclasses
23
from asyncio import Queue as BaseQueue
34
from typing import AsyncGenerator, AsyncIterator, Generic, TypeVar

src/hume/empathic_voice/chat/audio/audio_utilities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
"""Utilities for audio playback."""
23

34
import asyncio
@@ -28,4 +29,4 @@ async def play_audio(byte_str: bytes) -> None:
2829
if not _HAS_AUDIO_DEPENDENCIES:
2930
raise ApiError(body='Run `pip install "hume[microphone]"` to install dependencies required to use audio playback.')
3031
segment = AudioSegment.from_file(BytesIO(byte_str)) # type: ignore
31-
await asyncio.to_thread(pydub.playback.play, segment)
32+
await asyncio.to_thread(pydub.playback.play, segment)

src/hume/empathic_voice/chat/audio/chat_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
"""Async client for handling messages to and from an EVI connection."""
23

34
import asyncio
@@ -42,4 +43,4 @@ async def run(self, *, socket: ChatWebsocketConnection) -> None:
4243
"""
4344
send = self.sender.send(socket=socket)
4445

45-
await asyncio.gather(self._play(), send)
46+
await asyncio.gather(self._play(), send)

src/hume/empathic_voice/chat/audio/microphone.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
2+
13
"""Abstraction for handling microphone input."""
24

35
from __future__ import annotations

src/hume/empathic_voice/chat/audio/microphone_interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
from __future__ import annotations
23

34
import logging
@@ -47,4 +48,4 @@ async def start(
4748
message=session_settings_config
4849
)
4950
print("Microphone connected. Say something!")
50-
await chat_client.run(socket=socket)
51+
await chat_client.run(socket=socket)

src/hume/empathic_voice/chat/audio/microphone_sender.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
12
import logging
23
from dataclasses import dataclass
34
from typing import Protocol
@@ -60,4 +61,4 @@ async def send(self, *, socket: ChatWebsocketConnection) -> None:
6061
"""
6162
async for byte_str in self.microphone:
6263
if self.send_audio:
63-
await socket._send(byte_str)
64+
await socket._send(byte_str)

src/hume/empathic_voice/chat/socket_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# THIS FILE IS MANUALLY MAINTAINED: see .fernignore
2+
13
import asyncio
24
import base64
35
from contextlib import asynccontextmanager

0 commit comments

Comments
 (0)