Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gkonovalov committed Feb 12, 2024
1 parent 1526389 commit 0c89861
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ By utilizing parameters such as **silenceDurationMs** and **speechDurationMs**,
capability of VAD, enabling the detection of prolonged utterances while minimizing false positive
results during pauses between sentences.

Example Java:
Java example:
```java
VadWebRTC vad = Vad.builder()
.setSampleRate(SampleRate.SAMPLE_RATE_16K)
Expand All @@ -88,7 +88,7 @@ Example Java:

vad.close();
```
Example Kotlin:
Kotlin example:
```kotlin
VadWebRTC(
sampleRate = SampleRate.SAMPLE_RATE_16K,
Expand All @@ -100,8 +100,7 @@ Example Kotlin:
val isSpeech = vad.isSpeech(audioData)
}
```

An example of how to detect speech in an audio file.
An example of how to detect speech in an audio file:
```kotlin
VadWebRTC(
sampleRate = SampleRate.SAMPLE_RATE_16K,
Expand Down Expand Up @@ -178,7 +177,7 @@ By utilizing parameters such as **silenceDurationMs** and **speechDurationMs**,
capability of VAD, enabling the detection of prolonged utterances while minimizing false positive
results during pauses between sentences.

Example Java:
Java example:
```java
VadSilero vad = Vad.builder()
.setContext(requireContext())
Expand All @@ -193,7 +192,7 @@ Example Java:

vad.close();
```
Example Kotlin:
Kotlin example:
```kotlin
VadSilero(
requireContext(),
Expand Down Expand Up @@ -250,7 +249,7 @@ sound category (ex. classifyAudio(**"Speech"**, audioData)), you can enhance the
enabling the detection of prolonged utterances while minimizing false positive results during
pauses between sentences.

Example Java:
Java example:
```java
VadYamnet vad = Vad.builder()
.setContext(requireContext())
Expand All @@ -271,7 +270,7 @@ Example Java:

vad.close();
```
Example Kotlin:
Kotlin example:
```kotlin
VadYamnet(
requireContext(),
Expand Down

0 comments on commit 0c89861

Please sign in to comment.