@@ -619,6 +619,11 @@ internal JsonNode LiveClientSetupToMldev(JsonNode fromObject, JsonObject parentO
619619 Common . GetValueByPath ( fromObject , new string [ ] { "proactivity" } ) ) ;
620620 }
621621
622+ if ( ! Common . IsZero ( Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) ) ) {
623+ throw new NotSupportedException (
624+ "explicitVadSignal parameter is not supported in Gemini API." ) ;
625+ }
626+
622627 return toObject ;
623628 }
624629
@@ -691,6 +696,12 @@ internal JsonNode LiveClientSetupToVertex(JsonNode fromObject, JsonObject parent
691696 Common . GetValueByPath ( fromObject , new string [ ] { "proactivity" } ) ) ;
692697 }
693698
699+ if ( Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) != null ) {
700+ Common . SetValueByPath (
701+ toObject , new string [ ] { "explicitVadSignal" } ,
702+ Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) ) ;
703+ }
704+
694705 return toObject ;
695706 }
696707
@@ -819,6 +830,11 @@ internal JsonNode LiveConnectConfigToMldev(JsonNode fromObject, JsonObject paren
819830 Common . GetValueByPath ( fromObject , new string [ ] { "proactivity" } ) ) ;
820831 }
821832
833+ if ( ! Common . IsZero ( Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) ) ) {
834+ throw new NotSupportedException (
835+ "explicitVadSignal parameter is not supported in Gemini API." ) ;
836+ }
837+
822838 return toObject ;
823839 }
824840
@@ -946,6 +962,12 @@ internal JsonNode LiveConnectConfigToVertex(JsonNode fromObject, JsonObject pare
946962 Common . GetValueByPath ( fromObject , new string [ ] { "proactivity" } ) ) ;
947963 }
948964
965+ if ( Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) != null ) {
966+ Common . SetValueByPath (
967+ parentObject , new string [ ] { "setup" , "explicitVadSignal" } ,
968+ Common . GetValueByPath ( fromObject , new string [ ] { "explicitVadSignal" } ) ) ;
969+ }
970+
949971 return toObject ;
950972 }
951973
@@ -1135,6 +1157,13 @@ internal JsonNode LiveServerMessageFromVertex(JsonNode fromObject, JsonObject pa
11351157 Common . GetValueByPath ( fromObject , new string [ ] { "sessionResumptionUpdate" } ) ) ;
11361158 }
11371159
1160+ if ( Common . GetValueByPath ( fromObject , new string [ ] { "voiceActivityDetectionSignal" } ) !=
1161+ null ) {
1162+ Common . SetValueByPath (
1163+ toObject , new string [ ] { "voiceActivityDetectionSignal" } ,
1164+ Common . GetValueByPath ( fromObject , new string [ ] { "voiceActivityDetectionSignal" } ) ) ;
1165+ }
1166+
11381167 return toObject ;
11391168 }
11401169
0 commit comments