Skip to content

Commit

Permalink
Add Whisper service and its deps, and regen pom
Browse files Browse the repository at this point in the history
  • Loading branch information
AutonomicPerfectionist committed Sep 10, 2023
1 parent 83d31f6 commit fe942bc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,22 @@
</dependency>
<!-- JMonkeyEngine end -->

<!-- Joystick begin -->
<dependency>
<groupId>net.java.jinput</groupId>
<artifactId>jinput</artifactId>
<version>2.0.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jinput-natives</groupId>
<artifactId>jinput-natives</artifactId>
<version>2.0.7</version>
<scope>provided</scope>
<type>zip</type>
</dependency>
<!-- Joystick end -->

<!-- KafkaConnector begin -->
<dependency>
<groupId>org.apache.kafka</groupId>
Expand Down Expand Up @@ -1657,6 +1673,15 @@
<!-- Duplicate entry for org.myrobotlab.audio-voice-effects-1.0 skipping -->
<!-- WebkitSpeechSynthesis end -->

<!-- Whisper begin -->
<dependency>
<groupId>io.github.givimad</groupId>
<artifactId>whisper-jni</artifactId>
<version>1.4.2-6</version>
<scope>provided</scope>
</dependency>
<!-- Whisper end -->

<!-- Wii begin -->
<!-- Duplicate entry for wiiusej-wiiusej-wiiusej skipping -->
<!-- Wii end -->
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/org/myrobotlab/service/Whisper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.myrobotlab.service;

import org.myrobotlab.framework.Service;
import org.myrobotlab.service.config.ServiceConfig;

public class Whisper extends Service<ServiceConfig> {
/**
* Constructor of service, reservedkey typically is a services name and inId
* will be its process id
*
* @param reservedKey the service name
* @param inId process id
*/
public Whisper(String reservedKey, String inId) {
super(reservedKey, inId);
}
}
10 changes: 10 additions & 0 deletions src/main/java/org/myrobotlab/service/meta/WhisperMeta.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.myrobotlab.service.meta;

import org.myrobotlab.service.meta.abstracts.MetaData;

public class WhisperMeta extends MetaData {
public WhisperMeta() {
addDescription("A local speech recognition service leveraging the popular whisper.cpp project.");
addDependency("io.github.givimad", "whisper-jni", "1.4.2-6");
}
}

0 comments on commit fe942bc

Please sign in to comment.