Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: webrtc/modules/audio_processing/test/conversational_speech/timing.h

Issue 2750353002: Conversational speech tool: timing model with data access. (Closed)
Patch Set: minor changes Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
13
14 #include <string>
15 #include <vector>
16
17 namespace webrtc {
18 namespace test {
19 namespace conversational_speech {
20
21 struct Turn{
22 Turn(std::string new_speaker_name, std::string new_audiotrack_file_name,
23 int new_offset)
24 : speaker_name(new_speaker_name),
25 audiotrack_file_name(new_audiotrack_file_name),
26 offset(new_offset) {}
27 bool operator==(const Turn &b) const;
28 std::string speaker_name;
29 std::string audiotrack_file_name;
30 int offset;
31 };
32
33 // Loads a list of turns from a file.
34 std::vector<Turn> LoadTiming(const std::string& timing_filepath);
35
36 // Writes a list of turns into a file.
37 void SaveTiming(const std::string& timing_filepath,
38 const std::vector<Turn>& timing);
kwiberg-webrtc 2017/03/22 12:06:39 The second argument could be ArrayView<const Turn>
AleBzk 2017/03/22 15:26:21 Done.
39
40 } // namespace conversational_speech
41 } // namespace test
42 } // namespace webrtc
43
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_TEST_CONVERSATIONAL_SPEECH_TIMING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698