Class 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 Detail

      • Transcribe

        public Transcribe()
        Constructor
    • Method Detail

      • main

        public static void main​(String[] argv)
      • getVerbose

        public boolean getVerbose()
        Getter for verbose: Print verbose output to stderr
        Returns:
        Print verbose output to stderr
      • setVerbose

        @Switch("Whether to print debug tracing")
        public Transcribe setVerbose​(boolean newVerbose)
        Setter for verbose: Print verbose output to stderr
        Parameters:
        newVerbose - Print verbose output to stderr
      • getTranscriberName

        public String getTranscriberName()
        Getter for transcriberName: 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 for config: 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 for config: Transcriber installation configuration, if any is required.
        Parameters:
        newConfig - Transcriber installation configuration, if any is required.
      • getDescriptor

        public AnnotatorDescriptor getDescriptor()
        Getter for descriptor: Descriptor for the transcriber.
        Returns:
        Descriptor for the transcriber.
      • setDescriptor

        public Transcribe setDescriptor​(AnnotatorDescriptor newDescriptor)
        Setter for descriptor: Descriptor for the transcriber.
        Parameters:
        newDescriptor - Descriptor for the transcriber.
      • getTranscriber

        public Transcriber getTranscriber()
        Getter for transcriber: The transcriber to configure.
        Returns:
        The transcriber to configure.
      • setTranscriber

        public Transcribe setTranscriber​(Transcriber newTranscriber)
        Setter for transcriber: The transcriber to configure.
        Parameters:
        newTranscriber - The transcriber to configure.
      • getWorkingDir

        public File getWorkingDir()
        Getter for workingDir: Working directory.
        Returns:
        Working directory.
      • start

        public void start()