Code Monkey home page Code Monkey logo

sphinx4-http-server's Introduction

Sphinx4-HTTP-server

A simple speech-to-text HTTP server. It uses Jetty as the server component and Sphinx4 as the speech-to-text library.

Requirements

This project is build using Maven. Maven can be installed using:

$ apt-get install maven

It also requires the program FFMPEG with version 1.1 or higher. It expects FFMPEG to be located in /usr/bin, but this can be configured. FFMPEG can be downloaded at: https://ffmpeg.org/download.html

It is also possible to get the latest version by:

$ git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg

Running the server

You can run the server by executing the following commands in the root folder:

$ mvn compile
$ mvn exec:java -Dexec.mainClass="server.HttpServer"

Alternatively, run the scripts in the scripts folder:

$ ./scripts/compile.sh
$ ./scripts/run.sh <optional-port-number>

Configuration

It is possible to configure the server in src/main/resources/sphinx4http.properties.

The config file has the following values:

# The port the server should use.
port=8081

# The absolute path to a ffmpeg executable
ffmpeg_path=/usr/bin/ffmpeg

# The absolute path to the directory to write files to
#data_folder_path=/edit/to/an/absolute/path/

# To make responses be chunked
chunked_response=true

The port value will be overwritten when it's specified in the running script

Leave data_folder_path commented out unless the default behaviour is not desired.

If chunked_response is set to true, the server will respond to requests using a chunked HTTP response format, preventing time outs

Usage

The server will listen for POST requests on the specified port. The post request should include the audio file which has to be transcribed. When sending a POST request, the url of the server should tail "/recognize". The server accepts requests with a content type "audio/xxx".

An example of a request would look like the following:

$ curl -X POST --data-binary @filename.webm -H "Content-Type: audio/webm" http://localhost:8081/recognize

After retrieving a request, the server will convert the given audio file to the right format for Sphinx4. It will then do speech recognition. The result will be send back in JSON format. The structure of the JSON is dependent on the configuration.

A non-chunked reply will look like the following:

  {
 
    "session-id":"TpOeSN0gVM00OFHnSCHol9ESpaWNN5aF",
    "result":[
        {
            "word":"hello",
            "start":0,
            "end":390,
            "filler":false
        },
        {
            "word":"<sil>",
            "start":400,
            "end":420,
            "filler":true
        },
        {
            "word":"world",
            "start":430,
            "end":830,
            "filler":false
        }
    ]

}

If the server is set to use a chunked reply it will look like this:

  {
    "objects":[
        {
            "session-id":"TpOeSN0gVM00OFHnSCHol9ESpaWNN5aF",
        },
        {
            "word":"hello",
            "start":0,
            "end":390,
            "filler":false
        },
        {
            "word":"<sil>",
            "start":400,
            "end":420,
            "filler":true
        },
        {
            "word":"world",
            "start":430,
            "end":830,
            "filler":false
        }
    ]
}

The JSON array will hold objects with every word uttered in the given audio file. It will also include timestamp of when the word was uttered relative to the start of the audio file. If the word is filler, e.g a sigh, the filler value will be true. The session-id can be used to give multiple audio files to the server, telling it that they belongg together. This can be done by including ?session-id=<ID_HERE> in the URL. There is currently no difference in response, however.

sphinx4-http-server's People

Contributors

bgrozev avatar nikvaessen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sphinx4-http-server's Issues

Maven exec failing

Hi
When I run mvn exec:java -Dexec.mainClass="server.HttpServer" I get a java.lang.ClassNotFoundException: server.HttpServer error.

Any ideas on how I could resolve this?

Java Version

openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Maven Version

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.19.104-microsoft-standard", arch: "amd64", family: 
"unix"

Error Logs

Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "4.19.104-microsoft-standard", arch: "amd64", family: 
"unix"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: javax.annotation.* < plexus.core
[DEBUG]   Imported: javax.annotation.security.* < plexus.core
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.fusesource.jansi.* < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.event.* < plexus.core
[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo project
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/abhi/.m2/settings.xml
[DEBUG] Reading global toolchains from /usr/share/maven/conf/toolchains.xml
[DEBUG] Reading user toolchains from /home/abhi/.m2/toolchains.xml
[DEBUG] Using local repository at /home/abhi/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for /home/abhi/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project org.jitsi:sphinx4HTTPserver:jar:1.0-SNAPSHOT: (none)
[DEBUG] Looking up lifecycle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] Resolving plugin prefix exec from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally 
cached metadata up-to-date.
[DEBUG] Resolved plugin prefix exec to org.codehaus.mojo:exec-maven-plugin from repository central
[DEBUG] Could not find metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.codehaus.mojo:exec-maven-plugin to 3.0.0 
from repository central (https://repo.maven.apache.org/maven2, default, releases)[DEBUG] === REACTOR BUILD PLAN ================================================  
[DEBUG] Project: org.jitsi:sphinx4HTTPserver:jar:1.0-SNAPSHOT
[DEBUG] Tasks:   [exec:java]
[DEBUG] Style:   Regular
[DEBUG] =======================================================================  
[INFO] 
[INFO] --------------------< org.jitsi:sphinx4HTTPserver >---------------------  
[INFO] Building sphinx4HTTPserver 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------  
[DEBUG] Resolving plugin prefix exec from [org.apache.maven.plugins, org.codehaus.mojo]
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.apache.maven.plugins/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.codehaus.mojo/maven-metadata.xml, locally 
cached metadata up-to-date.
[DEBUG] Resolved plugin prefix exec to org.codehaus.mojo:exec-maven-plugin from repository central
[DEBUG] Could not find metadata org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for org.codehaus.mojo:exec-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Resolved plugin version for org.codehaus.mojo:exec-maven-plugin to 3.0.0 
from repository central (https://repo.maven.apache.org/maven2, default, releases)[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]    
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================  
[DEBUG] Project:       org.jitsi:sphinx4HTTPserver:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots, default, snapshots), central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins)     : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] -----------------------------------------------------------------------  
[DEBUG] Goal:          org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <addOutputToClasspath default-value="true">${addOutputToClasspath}</addOutputToClasspath>
  <addResourcesToClasspath default-value="false">${addResourcesToClasspath}</addResourcesToClasspath>
  <arguments>${exec.arguments}</arguments>
  <classpathScope default-value="runtime">${exec.classpathScope}</classpathScope>  <cleanupDaemonThreads default-value="true">${exec.cleanupDaemonThreads}</cleanupDaemonThreads>
  <commandlineArgs>${exec.args}</commandlineArgs>
  <daemonThreadJoinTimeout default-value="15000">${exec.daemonThreadJoinTimeout}</daemonThreadJoinTimeout>
  <includePluginDependencies default-value="false">${exec.includePluginsDependencies}</includePluginDependencies>
  <includeProjectDependencies default-value="true">${exec.includeProjectDependencies}</includeProjectDependencies>
  <keepAlive default-value="false">${exec.keepAlive}</keepAlive>
  <killAfter default-value="-1">${exec.killAfter}</killAfter>
  <mainClass>${exec.mainClass}</mainClass>
  <plugin default-value="${plugin}"/>
  <pluginDependencies default-value="${plugin.artifacts}"/>
  <project default-value="${project}"/>
  <session default-value="${session}"/>
  <skip default-value="false">${exec.skip}</skip>
  <sourceRoot>${sourceRoot}</sourceRoot>
  <stopUnresponsiveDaemonThreads default-value="false">${exec.stopUnresponsiveDaemonThreads}</stopUnresponsiveDaemonThreads>
  <testSourceRoot>${testSourceRoot}</testSourceRoot>
</configuration>
[DEBUG] =======================================================================  
[DEBUG] Could not find metadata edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Could not find metadata edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT/maven-metadata.xml in local (/home/abhi/.m2/repository)
[DEBUG] Skipped remote request for edu.cmu.sphinx:sphinx4-data:5prealpha-SNAPSHOT/maven-metadata.xml, locally cached metadata up-to-date.
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1225600, ConflictMarker.markTime=872100, ConflictMarker.nodeCount=23, ConflictIdSorter.graphTime=718300, ConflictIdSorter.topsortTime=527400, ConflictIdSorter.conflictIdCount=15, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=8531700, ConflictResolver.conflictItemCount=21, DefaultDependencyCollector.collectTime=132972700, DefaultDependencyCollector.transformTime=14420600}
[DEBUG] org.jitsi:sphinx4HTTPserver:jar:1.0-SNAPSHOT
[DEBUG]    org.slf4j:slf4j-api:jar:1.7.21:compile
[DEBUG]    org.slf4j:slf4j-log4j12:jar:1.7.21:compile
[DEBUG]       log4j:log4j:jar:1.2.17:compile
[DEBUG]    org.eclipse.jetty:jetty-server:jar:9.3.10.v20160621:compile
[DEBUG]       javax.servlet:javax.servlet-api:jar:3.1.0:compile
[DEBUG]       org.eclipse.jetty:jetty-http:jar:9.3.10.v20160621:compile
[DEBUG]          org.eclipse.jetty:jetty-util:jar:9.3.10.v20160621:compile       
[DEBUG]       org.eclipse.jetty:jetty-io:jar:9.3.10.v20160621:compile
[DEBUG]    org.eclipse.jetty:jetty-client:jar:9.3.10.v20160621:compile
[DEBUG]    edu.cmu.sphinx:sphinx4-core:jar:5prealpha-SNAPSHOT:compile
[DEBUG]       org.apache.commons:commons-math3:jar:3.2:compile
[DEBUG]    edu.cmu.sphinx:sphinx4-data:jar:5prealpha-SNAPSHOT:compile
[DEBUG]    junit:junit:jar:4.12:test
[DEBUG]       org.hamcrest:hamcrest-core:jar:1.3:test
[DEBUG]    com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO]
[INFO] --- exec-maven-plugin:3.0.0:java (default-cli) @ sphinx4HTTPserver ---
[DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=679900, ConflictMarker.markTime=363000, ConflictMarker.nodeCount=127, ConflictIdSorter.graphTime=237200, ConflictIdSorter.topsortTime=49800, ConflictIdSorter.conflictIdCount=30, 
ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=3486600, ConflictResolver.conflictItemCount=74, DefaultDependencyCollector.collectTime=198971100, DefaultDependencyCollector.transformTime=4936500}
[DEBUG] org.codehaus.mojo:exec-maven-plugin:jar:3.0.0
[DEBUG]    org.apache.maven:maven-model:jar:3.0:compile
[DEBUG]    org.apache.maven:maven-artifact:jar:3.0:compile
[DEBUG]    org.apache.maven:maven-core:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-settings:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-settings-builder:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-model-builder:jar:3.0:compile
[DEBUG]       org.apache.maven:maven-aether-provider:jar:3.0:runtime
[DEBUG]       org.sonatype.aether:aether-impl:jar:1.7:compile
[DEBUG]          org.sonatype.aether:aether-spi:jar:1.7:compile
[DEBUG]       org.sonatype.aether:aether-api:jar:1.7:compile
[DEBUG]       org.sonatype.aether:aether-util:jar:1.7:compile
[DEBUG]       org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile
[DEBUG]          org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile
[DEBUG]             org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile
[DEBUG]       org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG]       org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile
[DEBUG]       org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG]          org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:3.0:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:3.0.20:compile
[DEBUG]    org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile (optional)
[DEBUG]    org.apache.commons:commons-exec:jar:1.3:compile
[DEBUG]    org.apache.maven.shared:maven-artifact-transfer:jar:0.10.1:compile    
[DEBUG]       org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile
[DEBUG]          org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile    
[DEBUG]             commons-io:commons-io:jar:2.5:compile
[DEBUG]       commons-codec:commons-codec:jar:1.11:compile
[DEBUG]       org.slf4j:slf4j-api:jar:1.7.5:compile
[DEBUG] Created new class realm plugin>org.codehaus.mojo:exec-maven-plugin:3.0.0
[DEBUG] Importing foreign packages into class realm plugin>org.codehaus.mojo:exec-maven-plugin:3.0.0
[DEBUG]   Imported:  < maven.api
[DEBUG] Populating class realm plugin>org.codehaus.mojo:exec-maven-plugin:3.0.0  
[DEBUG]   Included: org.codehaus.mojo:exec-maven-plugin:jar:3.0.0
[DEBUG]   Included: org.sonatype.aether:aether-util:jar:1.7
[DEBUG]   Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2
[DEBUG]   Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7
[DEBUG]   Included: org.codehaus.plexus:plexus-interpolation:jar:1.14
[DEBUG]   Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG]   Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:3.0.20
[DEBUG]   Included: org.codehaus.plexus:plexus-component-annotations:jar:1.6     
[DEBUG]   Included: org.apache.commons:commons-exec:jar:1.3
[DEBUG]   Included: org.apache.maven.shared:maven-artifact-transfer:jar:0.10.1   
[DEBUG]   Included: org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1
[DEBUG]   Included: org.apache.maven.shared:maven-shared-utils:jar:3.1.0
[DEBUG]   Included: commons-io:commons-io:jar:2.5
[DEBUG]   Included: commons-codec:commons-codec:jar:1.11
[DEBUG] Configuring mojo org.codehaus.mojo:exec-maven-plugin:3.0.0:java from plugin realm ClassRealm[plugin>org.codehaus.mojo:exec-maven-plugin:3.0.0, parent: sun.misc.Launcher$AppClassLoader@1b6d3586]
[DEBUG] Configuring mojo 'org.codehaus.mojo:exec-maven-plugin:3.0.0:java' with basic configurator -->
[DEBUG]   (f) addOutputToClasspath = true
[DEBUG]   (f) addResourcesToClasspath = false
[DEBUG]   (f) arguments = []
[DEBUG]   (f) classpathScope = runtime
[DEBUG]   (f) cleanupDaemonThreads = true
[DEBUG]   (f) daemonThreadJoinTimeout = 15000
[DEBUG]   (f) includePluginDependencies = false
[DEBUG]   (f) includeProjectDependencies = true
[DEBUG]   (f) keepAlive = false
[DEBUG]   (f) killAfter = -1
[DEBUG]   (f) mainClass = server.HttpServer
[DEBUG]   (f) plugin = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'org.codehaus.mojo.exec.ExecMojo', role hint: 'org.codehaus.mojo:exec-maven-plugin:3.0.0:exec'
role: 'org.apache.maven.plugin.Mojo', implementation: 'org.codehaus.mojo.exec.HelpMojo', role hint: 'org.codehaus.mojo:exec-maven-plugin:3.0.0:help'
role: 'org.apache.maven.plugin.Mojo', implementation: 'org.codehaus.mojo.exec.ExecJavaMojo', role hint: 'org.codehaus.mojo:exec-maven-plugin:3.0.0:java'
---
[DEBUG]   (f) pluginDependencies = [org.codehaus.mojo:exec-maven-plugin:maven-plugin:3.0.0:, org.apache.maven:maven-model:jar:3.0:compile, org.apache.maven:maven-artifact:jar:3.0:compile, org.apache.maven:maven-core:jar:3.0:compile, org.apache.maven:maven-settings:jar:3.0:compile, org.apache.maven:maven-settings-builder:jar:3.0:compile, org.apache.maven:maven-repository-metadata:jar:3.0:compile, org.apache.maven:maven-model-builder:jar:3.0:compile, org.apache.maven:maven-aether-provider:jar:3.0:runtime, org.sonatype.aether:aether-impl:jar:1.7:compile, org.sonatype.aether:aether-spi:jar:1.7:compile, org.sonatype.aether:aether-api:jar:1.7:compile, org.sonatype.aether:aether-util:jar:1.7:compile, org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile, org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile, org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile, org.codehaus.plexus:plexus-interpolation:jar:1.14:compile, org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-plugin-api:jar:3.0:compile, org.codehaus.plexus:plexus-utils:jar:3.0.20:compile, org.codehaus.plexus:plexus-component-annotations:jar:1.6:compile, org.apache.commons:commons-exec:jar:1.3:compile, org.apache.maven.shared:maven-artifact-transfer:jar:0.10.1:compile, org.apache.maven.shared:maven-common-artifact-filters:jar:3.0.1:compile, org.apache.maven.shared:maven-shared-utils:jar:3.1.0:compile, commons-io:commons-io:jar:2.5:compile, commons-codec:commons-codec:jar:1.11:compile, org.slf4j:slf4j-api:jar:1.7.5:compile]
[DEBUG]   (f) project = MavenProject: org.jitsi:sphinx4HTTPserver:1.0-SNAPSHOT @ 
/mnt/d/Dev/InfinyValue/Sphinx4-HTTP-server/pom.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@46292372
[DEBUG]   (f) skip = false
[DEBUG]   (f) stopUnresponsiveDaemonThreads = false
[DEBUG] -- end configuration --
[DEBUG] Invoking : server.HttpServer.main()
[DEBUG] Plugin Dependencies will be excluded.
[DEBUG] Project Dependencies will be included.
[DEBUG] Collected project artifacts [org.slf4j:slf4j-api:jar:1.7.21:compile, org.slf4j:slf4j-log4j12:jar:1.7.21:compile, log4j:log4j:jar:1.2.17:compile, org.eclipse.jetty:jetty-server:jar:9.3.10.v20160621:compile, javax.servlet:javax.servlet-api:jar:3.1.0:compile, org.eclipse.jetty:jetty-http:jar:9.3.10.v20160621:compile, 
org.eclipse.jetty:jetty-util:jar:9.3.10.v20160621:compile, org.eclipse.jetty:jetty-io:jar:9.3.10.v20160621:compile, org.eclipse.jetty:jetty-client:jar:9.3.10.v20160621:compile, edu.cmu.sphinx:sphinx4-core:jar:5prealpha-SNAPSHOT:compile, org.apache.commons:commons-math3:jar:3.2:compile, edu.cmu.sphinx:sphinx4-data:jar:5prealpha-SNAPSHOT:compile, com.googlecode.json-simple:json-simple:jar:1.1.1:compile] 
[DEBUG] Collected project classpath [/mnt/d/Dev/InfinyValue/Sphinx4-HTTP-server/target/classes]
[DEBUG] Adding to classpath : /mnt/d/Dev/InfinyValue/Sphinx4-HTTP-server/target/classes
[DEBUG] Adding project dependency artifact: slf4j-api to classpath
[DEBUG] Adding project dependency artifact: slf4j-log4j12 to classpath
[DEBUG] Adding project dependency artifact: log4j to classpath
[DEBUG] Adding project dependency artifact: jetty-server to classpath
[DEBUG] Adding project dependency artifact: javax.servlet-api to classpath       
[DEBUG] Adding project dependency artifact: jetty-http to classpath
[DEBUG] Adding project dependency artifact: jetty-util to classpath
[DEBUG] Adding project dependency artifact: jetty-io to classpath
[DEBUG] Adding project dependency artifact: jetty-client to classpath
[DEBUG] Adding project dependency artifact: sphinx4-core to classpath
[DEBUG] Adding project dependency artifact: commons-math3 to classpath
[DEBUG] Adding project dependency artifact: sphinx4-data to classpath
[DEBUG] Adding project dependency artifact: json-simple to classpath
[DEBUG] joining on thread Thread[server.HttpServer.main(),5,server.HttpServer]
[WARNING] 
java.lang.ClassNotFoundException: server.HttpServer
    at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:418)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:351)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
    at java.lang.Thread.run (Thread.java:748)
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------  
[INFO] Total time:  1.240 s
[INFO] Finished at: 2020-06-07T19:08:36+05:30
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project sphinx4HTTPserver: An exception occured while executing the Java class. server.HttpServer -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (default-cli) on project sphinx4HTTPserver: An exception occured while executing the Java class. server.HttpServer   
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. server.HttpServer
    at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:311)       
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)Caused by: java.lang.ClassNotFoundException: server.HttpServer
    at java.net.URLClassLoader.findClass (URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:418)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:351)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:246)
    at java.lang.Thread.run (Thread.java:748)
[ERROR] 
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.