From 93f635b9150a1afd5ab97bbcaebea1982992667b Mon Sep 17 00:00:00 2001 From: killian <63927363+KillianLucas@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:45:33 -0700 Subject: [PATCH] Changed tests, remove acknowledge requirement --- .github/workflows/test.yml | 26 +++++++++++++++++--------- software/source/server/async_server.py | 4 +++- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0052676..73b49df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,15 +46,23 @@ jobs: poetry update poetry install - # # Install Portaudio on Ubuntu - # - name: Installing Portaudio in Ubuntu - # if: matrix.os == 'ubuntu-latest' - # run: sudo apt-get install portaudio19-dev python-all-dev - - # # Install Portaudio on macOS using Homebrew - # - name: Installing Portaudio in Mac - # if: matrix.os == 'macos-latest' - # run: brew install portaudio + # Install ffmpeg on Ubuntu + - name: Installing ffmpeg in Ubuntu + if: matrix.os == 'ubuntu-latest' + run: sudo apt-get install ffmpeg + + # Install ffmpeg on macOS using Homebrew + - name: Installing ffmpeg in Mac + if: matrix.os == 'macos-latest' + run: brew install ffmpeg + + # Install choco and then ffmpeg on Windows + - name: Installing choco and ffmpeg in Windows + if: matrix.os == 'windows-latest' + run: | + Set-ExecutionPolicy Bypass -Scope Process -Force + iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) + choco install ffmpeg # Run pytest - name: Run Pytest diff --git a/software/source/server/async_server.py b/software/source/server/async_server.py index b4b8b43..1d2ad1b 100644 --- a/software/source/server/async_server.py +++ b/software/source/server/async_server.py @@ -7,6 +7,8 @@ import types import wave import os +os.environ["INTERPRETER_REQUIRE_ACKNOWLEDGE"] = "False" + def start_server(server_host, server_port, profile, debug, play_audio): # Load the profile module from the provided path @@ -64,7 +66,7 @@ def start_server(server_host, server_port, profile, debug, play_audio): self.stt.stop() content = self.stt.text() - print("User: ", content) + print("\n\nUser: ", content) if False: audio_bytes = bytearray(b"".join(self.audio_chunks))