@@ -57,11 +57,13 @@ public static String[] getAvailableDevices() throws EagleException {
5757 *
5858 * @param accessKey AccessKey obtained from Picovoice Console
5959 * @param modelPath Absolute path to the file containing Eagle model parameters.
60- * @param device String representation of the device (e.g., CPU or GPU) to use for inference. If set to `best`, the most
61- * suitable device is selected automatically. If set to `gpu`, the engine uses the first available GPU device.
62- * To select a specific GPU device, set this argument to `gpu:${GPU_INDEX}`, where `${GPU_INDEX}` is the index of the
63- * target GPU. If set to `cpu`, the engine will run on the CPU with the default number of threads. To specify the
64- * number of threads, set this argument to `cpu:${NUM_THREADS}`, where `${NUM_THREADS}` is the desired number of threads.
60+ * @param device String representation of the device (e.g., CPU or GPU) to use for inference.
61+ * If set to `best`, the most suitable device is selected automatically. If set to `gpu`,
62+ * the engine uses the first available GPU device. To select a specific GPU device, set this
63+ * argument to `gpu:${GPU_INDEX}`, where `${GPU_INDEX}` is the index of the target GPU. If
64+ * set to `cpu`, the engine will run on the CPU with the default number of threads. To specify
65+ * the number of threads, set this argument to `cpu:${NUM_THREADS}`, where `${NUM_THREADS}`
66+ * is the desired number of threads.
6567 * @param speakerProfiles A list of EagleProfile objects. This can be constructed using `EagleProfiler`.
6668 * @throws EagleException if there is an error while initializing Eagle.
6769 */
@@ -102,7 +104,7 @@ public void delete() {
102104 *
103105 * @param pcm A frame of audio samples. The number of samples per frame can be attained by calling
104106 * `.getFrameLength()`. The incoming audio needs to have a sample rate equal
105- * to `.getSampleRate()` and be 16-bit linearly-encoded. Eagle operates on single-channel audio.
107+ * to `.getSampleRate()` and be 16-bit linearly-encoded. Eagle operates on single-channel audio.
106108 * @return A list of similarity scores for each speaker profile. A higher score indicates that the voice
107109 * belongs to the corresponding speaker. The range is [0, 1] with 1.0 representing a perfect match.
108110 * @throws EagleException if there is an error while processing audio frames.
0 commit comments