File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
recipes/llm-voice-assistant/python Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
import signal
2
2
import time
3
3
from argparse import ArgumentParser
4
+ from collections import deque
5
+ from itertools import chain
4
6
from multiprocessing import (
5
7
Pipe ,
6
8
Process ,
9
11
Optional ,
10
12
Sequence ,
11
13
)
12
- from collections import deque
13
- from itertools import chain
14
14
15
15
import picollm
16
16
import pvcheetah
17
17
import pvorca
18
18
import pvporcupine
19
19
from pvrecorder import PvRecorder
20
+ from pvspeaker import PvSpeaker
20
21
21
22
22
23
class RTFProfiler :
@@ -59,10 +60,6 @@ def tps(self) -> float:
59
60
60
61
61
62
def orca_worker (access_key : str , connection , warmup_sec : float , stream_frame_sec : int = 0.03 ) -> None :
62
- # noinspection PyUnresolvedReferences
63
- import numpy as np
64
- from pvspeaker import PvSpeaker
65
-
66
63
orca = pvorca .create (access_key = access_key )
67
64
orca_stream = orca .stream_open ()
68
65
You can’t perform that action at this time.
0 commit comments