`Class RecordingsLoader`
java.lang.Object
com.google.adk.plugins.recordings.RecordingsLoader
这是一个用于从 YAML 文件中加载录音数据的实用类(utility class)。
-
方法概述
Modifier and TypeMethodDescriptionstatic Recordingsload(InputStream inputStream) 从 YAML 格式的输入流中加载录音文件。static Recordings从 YAML 字符串中加载录音文件。static Recordings从 YAML 文件中加载录音数据。
-
方法详细信息(Method Details)
-
load
从 YAML 文件中加载录音数据。- Parameters:
path- the path to the YAML file- Returns:
- the parsed Recordings object
- Throws:
IOException- if an I/O error occurs
-
load
从 YAML 格式的输入流中加载录音文件。- Parameters:
inputStream- the YAML input stream- Returns:
- the parsed Recordings object
- Throws:
IOException- if an I/O error occurs
-
load
从 YAML 字符串中加载录音文件。- Parameters:
yamlContent- the YAML content as a string- Returns:
- the parsed Recordings object
- Throws:
IOException- if an I/O error occurs
-