Package nzilbb.ag.automation.util
Class Transcribe
- java.lang.Object
-
- nzilbb.util.CommandLineProgram
-
- nzilbb.ag.automation.util.Transcribe
-
@ProgramDescription(value="Utility for manual testing of automatic Transcriber modules", arguments="name.of.transcriber.class.or.jar audio.wav [audio.wav ...]") public class Transcribe extends CommandLineProgram
Command line utility for manual testing of automatic Transcriber modules.This can be invoked from the command line something like this:
java -cp nzilbb.ag.jar nzilbb.ag.automation.util.Transcribe nzilbb.transcriber.whisper.jar speech.wav
-
-
Constructor Summary
Constructors Constructor Description Transcribe()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConfig()Getter forconfig: Transcriber installation configuration, if any is required.AnnotatorDescriptorgetDescriptor()Getter fordescriptor: Descriptor for the transcriber.TranscribergetTranscriber()Getter fortranscriber: The transcriber to configure.StringgetTranscriberName()Getter fortranscriberName: The name of either a .jar file, or a class (if it's on the classpath), which implements the transcriber.booleangetVerbose()Getter forverbose: Print verbose output to stderrFilegetWorkingDir()Getter forworkingDir: Working directory.static voidmain(String[] argv)TranscribesetConfig(String newConfig)Setter forconfig: Transcriber installation configuration, if any is required.TranscribesetDescriptor(AnnotatorDescriptor newDescriptor)Setter fordescriptor: Descriptor for the transcriber.TranscribesetTranscriber(Transcriber newTranscriber)Setter fortranscriber: The transcriber to configure.TranscribesetVerbose(boolean newVerbose)Setter forverbose: Print verbose output to stderrvoidstart()-
Methods inherited from class nzilbb.util.CommandLineProgram
error, error, getUsage, getV, getVersion, interpretPropertiesParameters, message, processArguments, setUsage, setV, setVersion, warning, warning
-
-
-
-
Method Detail
-
main
public static void main(String[] argv)
-
getVerbose
public boolean getVerbose()
Getter forverbose: Print verbose output to stderr- Returns:
- Print verbose output to stderr
-
setVerbose
@Switch("Whether to print debug tracing") public Transcribe setVerbose(boolean newVerbose)
Setter forverbose: Print verbose output to stderr- Parameters:
newVerbose- Print verbose output to stderr
-
getTranscriberName
public String getTranscriberName()
Getter fortranscriberName: The name of either a .jar file, or a class (if it's on the classpath), which implements the transcriber.- Returns:
- The name of either a .jar file, or a class (if it's on the classpath), which implements the transcriber.
-
getConfig
public String getConfig()
Getter forconfig: Transcriber installation configuration, if any is required.- Returns:
- Transcriber installation configuration, if any is required.
-
setConfig
@Switch("Transcriber installation configuration, if it requires any.") public Transcribe setConfig(String newConfig)
Setter forconfig: Transcriber installation configuration, if any is required.- Parameters:
newConfig- Transcriber installation configuration, if any is required.
-
getDescriptor
public AnnotatorDescriptor getDescriptor()
Getter fordescriptor: Descriptor for the transcriber.- Returns:
- Descriptor for the transcriber.
-
setDescriptor
public Transcribe setDescriptor(AnnotatorDescriptor newDescriptor)
Setter fordescriptor: Descriptor for the transcriber.- Parameters:
newDescriptor- Descriptor for the transcriber.
-
getTranscriber
public Transcriber getTranscriber()
Getter fortranscriber: The transcriber to configure.- Returns:
- The transcriber to configure.
-
setTranscriber
public Transcribe setTranscriber(Transcriber newTranscriber)
Setter fortranscriber: The transcriber to configure.- Parameters:
newTranscriber- The transcriber to configure.
-
getWorkingDir
public File getWorkingDir()
Getter forworkingDir: Working directory.- Returns:
- Working directory.
-
start
public void start()
-
-