Changed tests, remove acknowledge requirement
This commit is contained in:
parent
fc97ef6a24
commit
93f635b915
|
@ -46,15 +46,23 @@ jobs:
|
||||||
poetry update
|
poetry update
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
# # Install Portaudio on Ubuntu
|
# Install ffmpeg on Ubuntu
|
||||||
# - name: Installing Portaudio in Ubuntu
|
- name: Installing ffmpeg in Ubuntu
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
# run: sudo apt-get install portaudio19-dev python-all-dev
|
run: sudo apt-get install ffmpeg
|
||||||
|
|
||||||
# # Install Portaudio on macOS using Homebrew
|
# Install ffmpeg on macOS using Homebrew
|
||||||
# - name: Installing Portaudio in Mac
|
- name: Installing ffmpeg in Mac
|
||||||
# if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
# run: brew install portaudio
|
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
|
# Run pytest
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
|
|
|
@ -7,6 +7,8 @@ import types
|
||||||
import wave
|
import wave
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
os.environ["INTERPRETER_REQUIRE_ACKNOWLEDGE"] = "False"
|
||||||
|
|
||||||
def start_server(server_host, server_port, profile, debug, play_audio):
|
def start_server(server_host, server_port, profile, debug, play_audio):
|
||||||
|
|
||||||
# Load the profile module from the provided path
|
# 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()
|
self.stt.stop()
|
||||||
content = self.stt.text()
|
content = self.stt.text()
|
||||||
|
|
||||||
print("User: ", content)
|
print("\n\nUser: ", content)
|
||||||
|
|
||||||
if False:
|
if False:
|
||||||
audio_bytes = bytearray(b"".join(self.audio_chunks))
|
audio_bytes = bytearray(b"".join(self.audio_chunks))
|
||||||
|
|
Loading…
Reference in New Issue