[go: nahoru, domu]

Skip to content

Commit

Permalink
feat: mp3 encoding support and compatible cubic models attribute
Browse files Browse the repository at this point in the history
  - Added support for MP3 audio encoding.

  - Added a new field to Juzu model attributes called `compatible_cubic_models`
    which provides the list of cubic model IDs that are compatible and can
    be used with the Juzu model. Compatibility depends mainly on sample rate
    and to some extent the language, and whether the model is near field or
    far field model.
  • Loading branch information
shahruk10 committed Jan 21, 2022
1 parent 3dc24bc commit a49d257
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 113 deletions.
4 changes: 4 additions & 0 deletions grpc/csharp-juzu/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ public async Task StreamingDiarizeAsync(
case (AudioEncoding.FLAC):
encoding = CobaltSpeech.Juzu.DiarizationConfig.Types.Encoding.Flac;
break;
case (AudioEncoding.MP3):
encoding = CobaltSpeech.Juzu.DiarizationConfig.Types.Encoding.Mp3;
break;
case (AudioEncoding.RAW):
encoding = CobaltSpeech.Juzu.DiarizationConfig.Types.Encoding.RawLinear16;
break;
Expand Down Expand Up @@ -192,6 +195,7 @@ public struct DiarizationConfig {
public enum AudioEncoding {
WAV,
FLAC,
MP3,
RAW,
}
}
Loading

0 comments on commit a49d257

Please sign in to comment.