-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
101 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-keep class ai.picovoice.falcon.*Exception { <init>(...); } | ||
-keep class ai.picovoice.falcon.FalconSegments { <init>(...); } | ||
-keep class ai.picovoice.falcon.FalconSegment { <init>(...); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-keep class ai.picovoice.falcon.*Exception { <init>(...); } | ||
-keep class ai.picovoice.falcon.FalconSegments { <init>(...); } | ||
-keep class ai.picovoice.falcon.FalconSegment { <init>(...); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
binding/android/Falcon/falcon/src/main/java/ai/picovoice/FalconSegment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
Copyright 2024 Picovoice Inc. | ||
You may not use this file except in compliance with the license. A copy of the license is | ||
located in the "LICENSE" file accompanying this source. | ||
Unless required by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
express or implied. See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package ai.picovoice.falcon; | ||
|
||
/** | ||
* FalconSegment class. | ||
*/ | ||
public class FalconSegment { | ||
private final float startSec; | ||
private final float endSec; | ||
private final int speakerTag; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param startSec Start of segment in seconds. | ||
* @param endSec End of segment in seconds. | ||
* @param speakerTag A non-negative integer that identifies unique speakers. | ||
*/ | ||
public FalconSegment( | ||
float startSec, | ||
float endSec, | ||
int speakerTag | ||
) { | ||
this.startSec = startSec; | ||
this.endSec = endSec; | ||
this.speakerTag = speakerTag; | ||
} | ||
|
||
/** | ||
* Getter for the start of segment in seconds. | ||
* | ||
* @return Start of segment in seconds. | ||
*/ | ||
public float getStartSec() { | ||
return startSec; | ||
} | ||
|
||
/** | ||
* Getter for the end of segment in seconds. | ||
* | ||
* @return End of segment in seconds. | ||
*/ | ||
public float getEndSec() { | ||
return endSec; | ||
} | ||
|
||
/** | ||
* Getter for the speaker tag. | ||
* | ||
* @return Speaker tag. | ||
*/ | ||
public int getSpeakerTag() { | ||
return speakerTag; | ||
} | ||
} |
92 changes: 0 additions & 92 deletions
92
binding/android/Falcon/falcon/src/main/java/ai/picovoice/FalconSegments.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.