Skip to content

Commit 46d1e54

Browse files
committed
fix: gofmt .
1 parent 48df33c commit 46d1e54

25 files changed

Lines changed: 36 additions & 39 deletions

File tree

api/assistant-api/internal/end_of_speech/end_of_speech.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import (
1919
type EndOfSpeechIdentifier string
2020

2121
const (
22-
SilenceBasedEndOfSpeech EndOfSpeechIdentifier = "silence_based_eos"
23-
LiveKitEndOfSpeech EndOfSpeechIdentifier = "livekit_eos"
24-
PipecatSmartTurnEndOfSpeech EndOfSpeechIdentifier = "pipecat_smart_turn_eos"
25-
EndOfSpeechOptionsKeyProvider = "microphone.eos.provider"
22+
SilenceBasedEndOfSpeech EndOfSpeechIdentifier = "silence_based_eos"
23+
LiveKitEndOfSpeech EndOfSpeechIdentifier = "livekit_eos"
24+
PipecatSmartTurnEndOfSpeech EndOfSpeechIdentifier = "pipecat_smart_turn_eos"
25+
EndOfSpeechOptionsKeyProvider = "microphone.eos.provider"
2626
)
2727

2828
func GetEndOfSpeech(ctx context.Context, logger commons.Logger, onCallback func(context.Context, ...internal_type.Packet) error, opts utils.Option) (internal_type.EndOfSpeech, error) {

api/assistant-api/internal/end_of_speech/internal/livekit/turn_detector.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,6 @@ func (td *TurnDetector) Predict(text string) (float64, error) {
181181
return prob, nil
182182
}
183183

184-
185-
186184
// Destroy releases all ONNX Runtime resources.
187185
func (td *TurnDetector) Destroy() {
188186
if td == nil {

api/assistant-api/internal/end_of_speech/internal/pipecat/mel_spectrogram.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const (
1717
whisperHopLength = 160
1818
whisperNMels = 80
1919
whisperChunkSec = 8
20-
whisperMaxSamples = whisperChunkSec * whisperSampleRate // 128000
20+
whisperMaxSamples = whisperChunkSec * whisperSampleRate // 128000
2121
whisperMaxFrames = whisperMaxSamples / whisperHopLength // 800
22-
whisperNFreqBins = whisperNFFT/2 + 1 // 201
22+
whisperNFreqBins = whisperNFFT/2 + 1 // 201
2323
whisperFFTSize = 512 // next power of 2 >= nFFT
2424
)
2525

api/assistant-api/internal/transformer/rime/rime_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ func TestGetTextToSpeechConnectionString_Default(t *testing.T) {
6565
func TestGetTextToSpeechConnectionString_WithOverrides(t *testing.T) {
6666
cred := newVaultCredential(map[string]interface{}{"key": "k"})
6767
opts := utils.Option{
68-
"speak.voice.id": "aria",
69-
"speak.model": "mist",
70-
"speak.language": "fra",
68+
"speak.voice.id": "aria",
69+
"speak.model": "mist",
70+
"speak.language": "fra",
7171
"speak.speed_alpha": "1.2",
7272
}
7373
opt, _ := NewRimeOption(newTestLogger(), cred, opts)

api/assistant-api/internal/vad/internal/firered_vad/fbank.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ import (
1414
// -----------------------------------------------------------------------------
1515

1616
const (
17-
featDim = 80 // Number of mel filterbank bins
18-
sampleRate = 16000 // Input sample rate (Hz)
19-
frameLengthMs = 25 // Frame length in milliseconds
20-
frameShiftMs = 10 // Frame shift in milliseconds
17+
featDim = 80 // Number of mel filterbank bins
18+
sampleRate = 16000 // Input sample rate (Hz)
19+
frameLengthMs = 25 // Frame length in milliseconds
20+
frameShiftMs = 10 // Frame shift in milliseconds
2121
frameLenSample = sampleRate * frameLengthMs / 1000 // 400 samples
2222
frameShiftSamp = sampleRate * frameShiftMs / 1000 // 160 samples
23-
fftSize = 512 // Next power of 2 >= frameLenSample
24-
preemphCoeff = 0.97 // Pre-emphasis coefficient (Kaldi default)
25-
melLowFreq = 20.0 // Mel filterbank low frequency
26-
melHighFreq = 8000.0 // Nyquist for 16 kHz
23+
fftSize = 512 // Next power of 2 >= frameLenSample
24+
preemphCoeff = 0.97 // Pre-emphasis coefficient (Kaldi default)
25+
melLowFreq = 20.0 // Mel filterbank low frequency
26+
melHighFreq = 8000.0 // Nyquist for 16 kHz
2727
)
2828

2929
// -----------------------------------------------------------------------------

api/assistant-api/internal/vad/internal/silero_vad/silero_vad_benchmark_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ func BenchmarkSileroVAD_Process_MemoryPressure_LargeChunks(b *testing.B) {
417417
func BenchmarkSileroVAD_Process_WithCallback(b *testing.B) {
418418
logger, _ := commons.NewApplicationLogger()
419419

420-
421420
callbackCount := 0
422421
callback := func(context.Context, ...internal_type.Packet) error {
423422
callbackCount++

api/integration-api/internal/caller/anthropic/llm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"github.com/anthropics/anthropic-sdk-go"
1111

12-
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1312
internal_caller_metrics "github.com/rapidaai/api/integration-api/internal/caller/metrics"
13+
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1414
"github.com/rapidaai/pkg/commons"
1515
"github.com/rapidaai/pkg/utils"
1616
protos "github.com/rapidaai/protos"

api/integration-api/internal/caller/azure/llm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/openai/openai-go"
1111
"github.com/openai/openai-go/shared"
1212

13-
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1413
internal_caller_metrics "github.com/rapidaai/api/integration-api/internal/caller/metrics"
14+
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1515
"github.com/rapidaai/pkg/commons"
1616
"github.com/rapidaai/pkg/utils"
1717
"github.com/rapidaai/protos"

api/integration-api/internal/caller/azure/text-embedding.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/openai/openai-go"
99

10-
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1110
internal_caller_metrics "github.com/rapidaai/api/integration-api/internal/caller/metrics"
11+
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1212
"github.com/rapidaai/pkg/commons"
1313
type_enums "github.com/rapidaai/pkg/types/enums"
1414
"github.com/rapidaai/pkg/utils"

api/integration-api/internal/caller/cohere/llm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
cohere "github.com/cohere-ai/cohere-go/v2"
1010

11-
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1211
internal_caller_metrics "github.com/rapidaai/api/integration-api/internal/caller/metrics"
12+
internal_callers "github.com/rapidaai/api/integration-api/internal/type"
1313
"github.com/rapidaai/pkg/commons"
1414
"github.com/rapidaai/pkg/utils"
1515
protos "github.com/rapidaai/protos"

0 commit comments

Comments
 (0)