@@ -444,8 +444,25 @@ const (
444
444
445
445
type ASRVendorParamsInterface interface {
446
446
VendorParam ()
447
+ GetVendorType () ASRVendor
447
448
}
448
449
450
+ // @brief Defines the Automatic Speech Recognition (ASR) Fengming vendor parameter for the agent to join the RTC channel
451
+ //
452
+ // @since v0.12.0
453
+ type ASRFengmingVendorParam struct {}
454
+
455
+ func (ASRFengmingVendorParam ) VendorParam () {}
456
+ func (ASRFengmingVendorParam ) GetVendorType () ASRVendor { return ASRVendorFengming }
457
+
458
+ // @brief Defines the Automatic Speech Recognition (ASR) Ares vendor parameter for the agent to join the RTC channel
459
+ //
460
+ // @since v0.12.0
461
+ type ASRAresVendorParam struct {}
462
+
463
+ func (ASRAresVendorParam ) VendorParam () {}
464
+ func (ASRAresVendorParam ) GetVendorType () ASRVendor { return ASRVendorAres }
465
+
449
466
// @brief Defines the Automatic Speech Recognition (ASR) Tencent vendor parameter for the agent to join the RTC channel
450
467
//
451
468
// @since v0.12.0
@@ -457,7 +474,8 @@ type ASRTencentVendorParam struct {
457
474
VoiceId string `json:"voice_id"`
458
475
}
459
476
460
- func (ASRTencentVendorParam ) VendorParam () {}
477
+ func (ASRTencentVendorParam ) VendorParam () {}
478
+ func (ASRTencentVendorParam ) GetVendorType () ASRVendor { return ASRVendorTencent }
461
479
462
480
// @brief Defines the Automatic Speech Recognition (ASR) Microsoft vendor parameter for the agent to join the RTC channel
463
481
//
@@ -469,7 +487,8 @@ type ASRMicrosoftVendorParam struct {
469
487
PhraseList []string `json:"phrase_list"`
470
488
}
471
489
472
- func (ASRMicrosoftVendorParam ) VendorParam () {}
490
+ func (ASRMicrosoftVendorParam ) VendorParam () {}
491
+ func (ASRMicrosoftVendorParam ) GetVendorType () ASRVendor { return ASRVendorMicrosoft }
473
492
474
493
// @brief Defines the Automatic Speech Recognition (ASR) deepgram vendor parameter for the agent to join the RTC channel
475
494
//
@@ -481,7 +500,8 @@ type ASRDeepgramVendorParam struct {
481
500
Language string `json:"language"`
482
501
}
483
502
484
- func (ASRDeepgramVendorParam ) VendorParam () {}
503
+ func (ASRDeepgramVendorParam ) VendorParam () {}
504
+ func (ASRDeepgramVendorParam ) GetVendorType () ASRVendor { return ASRVendorDeepgram }
485
505
486
506
// @brief Defines the Automatic Speech Recognition (ASR) configuration for the agent to join the RTC channel
487
507
//
0 commit comments