-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from ucsd-cse110-fa23/voice-recognition
feat: voice recognition
- Loading branch information
Showing
68 changed files
with
1,076 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Java CI | ||
|
||
on: [push] | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Install Xvfb | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb | ||
continue-on-error: true | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
# build everything (includes running unit tests) | ||
- name: Execute Gradle build | ||
run: xvfb-run -a ./gradlew build | ||
|
||
# report the results | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: success() || failure() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/build/test-results/test/TEST-*.xml' | ||
detailed_summary: true # display detailed summary of the report | ||
include_passed: true # include passed tests in the results table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"java.debug.settings.onBuildFailureProceed": true | ||
"java.compile.nullAnalysis.mode": "automatic", | ||
"java.project.referencedLibraries": [ | ||
"lib/**/*.jar" | ||
], | ||
"java.configuration.updateBuildConfiguration": "interactive" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Lab5-Test | ||
CSE110FA23 Lab 5 - Creating your own HTTP Server and Multithreading | ||
# CSE 110 Project Team 39 Culinary Companion Crew | ||
PantryPals - the application that provides you with recipes that YOU have currently in your possession! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This generated file contains a sample Java application project to get you started. | ||
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle | ||
* User Manual available at https://docs.gradle.org/8.0.2/userguide/building_java_projects.html | ||
*/ | ||
|
||
plugins { | ||
// Apply the application plugin to add support for building a CLI application in Java. | ||
id 'application' | ||
id 'org.openjfx.javafxplugin' version '0.0.9' | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
// Use JUnit Jupiter for testing. | ||
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1' | ||
|
||
// This dependency is used by the application. | ||
implementation 'com.google.guava:guava:31.1-jre' | ||
|
||
implementation 'org.json:json:20180813' | ||
} | ||
|
||
application { | ||
// Define the main class for the application. | ||
mainClass = 'src.App' | ||
} | ||
|
||
tasks.named('test') { | ||
// Use JUnit Platform for unit tests. | ||
useJUnitPlatform() | ||
} | ||
|
||
javafx { | ||
version = "21" | ||
modules = [ 'javafx.controls' ] | ||
} |
Binary file added
BIN
+1.24 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/App.class.uniqueId3
Binary file not shown.
Binary file added
BIN
+2.25 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/AudioRecorder$1.class.uniqueId4
Binary file not shown.
Binary file added
BIN
+1.45 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/AudioRecorder.class.uniqueId0
Binary file not shown.
Binary file added
BIN
+1.77 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/Controller.class.uniqueId1
Binary file not shown.
Binary file added
BIN
+2.45 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/Model.class.uniqueId2
Binary file not shown.
Binary file added
BIN
+2.71 KB
app/build/tmp/compileJava/compileTransaction/stash-dir/View.class.uniqueId5
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.16 KB
...build/tmp/compileTestJava/compileTransaction/stash-dir/VoiceRetrievalTest.class.uniqueId0
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion
1
src/ContactManagerReference.java → app/src/ContactManagerReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
// layout | ||
import javafx.animation.PauseTransition; | ||
import javafx.application.Application; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package code.client.Controllers; | ||
|
||
import code.client.Controllers.AudioRecorder; | ||
import code.client.Model.Model; | ||
import code.client.View.View; | ||
import javafx.event.ActionEvent; | ||
|
||
/* | ||
* Modify t | ||
*/ | ||
public class Controller { | ||
private View view; | ||
private Model model; | ||
private AudioRecorder audioRecorder; | ||
|
||
public Controller(View view, Model model) { | ||
this.view = view; | ||
this.model = model; | ||
this.audioRecorder = new AudioRecorder(view.getRecordingLabel()); | ||
|
||
// recording buttons | ||
this.view.setStartButtonAction(this::handleStartButton); | ||
this.view.setStopButtonAction(this::handleStopButton); | ||
} | ||
|
||
private void handleStartButton(ActionEvent event) { | ||
audioRecorder.startRecording(); | ||
} | ||
|
||
private void handleStopButton(ActionEvent event) { | ||
// Makes calls to View | ||
audioRecorder.stopRecording(); | ||
} | ||
/* | ||
* private void handlePostButton(ActionEvent event) { | ||
* String language = view.getLanguage(); | ||
* String year = view.getYear(); | ||
* String response = model.performRequest("POST", language, year, null); | ||
* view.showAlert("Response", response); | ||
* } | ||
* | ||
* private void handleGetButton(ActionEvent event) { | ||
* String query = view.getQuery(); | ||
* String response = model.performRequest("GET", null, null, query); | ||
* view.showAlert("Response", response); | ||
* } | ||
* | ||
* private void handlePutButton(ActionEvent event) { | ||
* String language = view.getLanguage(); | ||
* String year = view.getYear(); | ||
* String response = model.performRequest("PUT", language, year, null); | ||
* view.showAlert("Response", response); | ||
* } | ||
* | ||
* private void handleDeleteButton(ActionEvent event) { | ||
* String query = view.getQuery(); | ||
* String response = model.performRequest("DELETE", null, null, query); | ||
* view.showAlert("Response", response); | ||
* } | ||
*/ | ||
} |
Oops, something went wrong.