Class IPA


  • public class IPA
    extends java.lang.Object
    Author:
    N3ther
    • Constructor Summary

      Constructors 
      Constructor Description
      IPA()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createAudio​(java.lang.String[] fileNames, java.lang.String name, java.lang.String packName)
      Takes file names, glues them together, creates a file, and plays it.
      static java.lang.String[] getFileNames​(java.lang.String input)
      Creates a String array of all characters inputted, adding diacritics to their respective sound.
      static void recordAudio​(javax.sound.sampled.Clip clip, java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IPA

        public IPA()
    • Method Detail

      • getFileNames

        public static java.lang.String[] getFileNames​(java.lang.String input)
        Creates a String array of all characters inputted, adding diacritics to their respective sound.
        Parameters:
        input - The raw IPA input
        Returns:
        A string array with each file's name
      • createAudio

        public static java.lang.String createAudio​(java.lang.String[] fileNames,
                                                   java.lang.String name,
                                                   java.lang.String packName)
        Takes file names, glues them together, creates a file, and plays it.
        Parameters:
        fileNames - The processed input, see getFileNames()
        name - The name of the file to output to, without the .wav
        packName - The name of the sound pack to add to
        Returns:
        Any messages generated while making the audio (exceptions, warnings, etc.)
      • recordAudio

        public static void recordAudio​(javax.sound.sampled.Clip clip,
                                       java.io.File file)