`Class RecordingsLoader`

java.lang.Object
com.google.adk.plugins.recordings.RecordingsLoader

public final class RecordingsLoader extends Object
这是一个用于从 YAML 文件中加载录音数据的实用类(utility class)。
  • 方法详细信息(Method Details)

    • load

      public static Recordings load(Path path) throws IOException
      从 YAML 文件中加载录音数据。
      Parameters:
      path - the path to the YAML file
      Returns:
      the parsed Recordings object
      Throws:
      IOException - if an I/O error occurs
    • load

      public static Recordings load(InputStream inputStream) throws IOException
      从 YAML 格式的输入流中加载录音文件。
      Parameters:
      inputStream - the YAML input stream
      Returns:
      the parsed Recordings object
      Throws:
      IOException - if an I/O error occurs
    • load

      public static Recordings load(String yamlContent) throws IOException
      从 YAML 字符串中加载录音文件。
      Parameters:
      yamlContent - the YAML content as a string
      Returns:
      the parsed Recordings object
      Throws:
      IOException - if an I/O error occurs