AudioBufferConfiguration.cs 734 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. using System;
  9. using UnityEngine;
  10. namespace Meta.WitAi.Data
  11. {
  12. [Serializable]
  13. public class AudioBufferConfiguration
  14. {
  15. [Tooltip("The length of the individual samples read from the audio source")]
  16. [Range(10, 500)]
  17. [SerializeField]
  18. public int sampleLengthInMs = 10;
  19. [Tooltip(
  20. "The total audio data that should be buffered for lookback purposes on sound based activations.")]
  21. [SerializeField]
  22. public float micBufferLengthInSeconds = 1;
  23. }
  24. }