Exemple #1
0
 protected void finish(VoiceActivityDetectionJSON result)
 {
     if (fieldGeneratorMaxSilenceSeconds.have_value)
     {
         result.setMaxSilenceSecondsText(fieldGeneratorMaxSilenceSeconds.value);
         fieldGeneratorMaxSilenceSeconds.have_value = false;
     }
     if (fieldGeneratorMaxSilenceAfterFullQuerySeconds.have_value)
     {
         result.setMaxSilenceAfterFullQuerySecondsText(fieldGeneratorMaxSilenceAfterFullQuerySeconds.value);
         fieldGeneratorMaxSilenceAfterFullQuerySeconds.have_value = false;
     }
     if (fieldGeneratorMaxSilenceAfterPartialQuerySeconds.have_value)
     {
         result.setMaxSilenceAfterPartialQuerySecondsText(fieldGeneratorMaxSilenceAfterPartialQuerySeconds.value);
         fieldGeneratorMaxSilenceAfterPartialQuerySeconds.have_value = false;
     }
 }
Exemple #2
0
        protected override void finish()
        {
            VoiceActivityDetectionJSON result = new VoiceActivityDetectionJSON();

            Debug.Assert(result != null);
            finish(result);
            int extra_count = unknownFieldGenerator.field_names.Count;

            Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count);
            for (int extra_num = 0; extra_num < extra_count; ++extra_num)
            {
                result.extraVoiceActivityDetectionAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]);
            }
            unknownFieldGenerator.field_names.Clear();
            unknownFieldGenerator.field_values.Clear();
            unknownFieldGenerator.index = new Dictionary <string, JSONValue>();
            handle_result(result);
        }
Exemple #3
0
 protected override void handle_result(VoiceActivityDetectionJSON result)
 {
     top.value.Add(result);
 }
Exemple #4
0
        protected override void handle_result(VoiceActivityDetectionJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Exemple #5
0
 protected abstract void handle_result(VoiceActivityDetectionJSON new_result);