remove print
This commit is contained in:
parent
47c7104d15
commit
e9cfbed191
|
@ -43,8 +43,6 @@ func start_wakeword():
|
||||||
if pipe_running:
|
if pipe_running:
|
||||||
return
|
return
|
||||||
|
|
||||||
print("wake start")
|
|
||||||
|
|
||||||
api.send_packet({
|
api.send_packet({
|
||||||
"type": "assist_pipeline/run",
|
"type": "assist_pipeline/run",
|
||||||
"start_stage": "wake_word",
|
"start_stage": "wake_word",
|
||||||
|
@ -66,8 +64,6 @@ func send_data(data: PackedByteArray):
|
||||||
stream.encode_s8(0, handler_id)
|
stream.encode_s8(0, handler_id)
|
||||||
stream.append_array(data)
|
stream.append_array(data)
|
||||||
|
|
||||||
print("sending data")
|
|
||||||
|
|
||||||
api.send_raw(stream)
|
api.send_raw(stream)
|
||||||
|
|
||||||
func handle_message(message: Dictionary):
|
func handle_message(message: Dictionary):
|
||||||
|
@ -79,11 +75,8 @@ func handle_message(message: Dictionary):
|
||||||
if event.has("type") == false:
|
if event.has("type") == false:
|
||||||
return
|
return
|
||||||
|
|
||||||
print(message)
|
|
||||||
|
|
||||||
match event["type"]:
|
match event["type"]:
|
||||||
"run-start":
|
"run-start":
|
||||||
print("Pipeline started")
|
|
||||||
pipe_running = true
|
pipe_running = true
|
||||||
handler_id = event["data"]["runner_data"]["stt_binary_handler_id"]
|
handler_id = event["data"]["runner_data"]["stt_binary_handler_id"]
|
||||||
"wake_word-end":
|
"wake_word-end":
|
||||||
|
|
|
@ -7,7 +7,6 @@ var data = PackedVector2Array()
|
||||||
var result: PackedFloat32Array
|
var result: PackedFloat32Array
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
print("test")
|
|
||||||
for i in range(0, 44100):
|
for i in range(0, 44100):
|
||||||
var value = sin(i * 2 * PI / 44100.0)
|
var value = sin(i * 2 * PI / 44100.0)
|
||||||
data.push_back(Vector2(value, value))
|
data.push_back(Vector2(value, value))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user