Skip to content

Commit df76142

Browse files
committed
fix style
1 parent 28990fa commit df76142

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

binding/android/Eagle/eagle/src/main/java/ai/picovoice/eagle/Eagle.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.

binding/android/Eagle/eagle/src/main/java/ai/picovoice/eagle/EagleProfiler.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ public static String[] getAvailableDevices() throws EagleException {
5959
*
6060
* @param accessKey AccessKey obtained from Picovoice Console
6161
* @param modelPath Absolute path to the file containing Eagle model parameters.
62-
* @param device String representation of the device (e.g., CPU or GPU) to use for inference. If set to `best`, the most
63-
* suitable device is selected automatically. If set to `gpu`, the engine uses the first available GPU device.
64-
* To select a specific GPU device, set this argument to `gpu:${GPU_INDEX}`, where `${GPU_INDEX}` is the index of the
65-
* target GPU. If set to `cpu`, the engine will run on the CPU with the default number of threads. To specify the
66-
* number of threads, set this argument to `cpu:${NUM_THREADS}`, where `${NUM_THREADS}` is the desired number of threads.
62+
* @param device String representation of the device (e.g., CPU or GPU) to use for inference.
63+
* If set to `best`, the most suitable device is selected automatically. If set to `gpu`,
64+
* the engine uses the first available GPU device. To select a specific GPU device, set this
65+
* argument to `gpu:${GPU_INDEX}`, where `${GPU_INDEX}` is the index of the target GPU. If
66+
* set to `cpu`, the engine will run on the CPU with the default number of threads. To specify
67+
* the number of threads, set this argument to `cpu:${NUM_THREADS}`, where `${NUM_THREADS}`
68+
* is the desired number of threads.
6769
* @throws EagleException if there is an error while initializing EagleProfiler.
6870
*/
6971
private EagleProfiler(

binding/android/EagleTestApp/eagle-test-app/src/androidTest/java/ai/picovoice/eagle/testapp/BaseTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class BaseTest {
5050
String defaultModelPath;
5151

5252
String accessKey;
53+
String device;
5354

5455
@Before
5556
public void Setup() throws IOException {

0 commit comments

Comments
 (0)