tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

simulator.h (1506B)


      1 /*
      2 *  Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
      3 *
      4 *  Use of this source code is governed by a BSD-style license
      5 *  that can be found in the LICENSE file in the root of the source
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 #ifndef MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_
     12 #define MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_
     13 
     14 #include <map>
     15 #include <memory>
     16 #include <string>
     17 
     18 #include "absl/strings/string_view.h"
     19 #include "modules/audio_processing/test/conversational_speech/multiend_call.h"
     20 
     21 namespace webrtc {
     22 namespace test {
     23 namespace conversational_speech {
     24 
     25 struct SpeakerOutputFilePaths {
     26  SpeakerOutputFilePaths(absl::string_view new_near_end,
     27                         absl::string_view new_far_end)
     28      : near_end(new_near_end), far_end(new_far_end) {}
     29  // Paths to the near-end and far-end audio track files.
     30  const std::string near_end;
     31  const std::string far_end;
     32 };
     33 
     34 // Generates the near-end and far-end audio track pairs for each speaker.
     35 std::unique_ptr<std::map<std::string, SpeakerOutputFilePaths>> Simulate(
     36    const MultiEndCall& multiend_call,
     37    absl::string_view output_path);
     38 
     39 }  // namespace conversational_speech
     40 }  // namespace test
     41 }  // namespace webrtc
     42 
     43 #endif  // MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_SIMULATOR_H_