2 * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 * http://www.apache.org/licenses/LICENSE-2.0
7 * Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS,
9 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 * See the License for the specific language governing permissions and
11 * limitations under the License.
15 #ifndef __STTD_RECORDER_H__
16 #define __STTD_RECORDER_H__
25 STTD_RECORDER_STATE_READY, /**< Recorder is ready to start */
26 STTD_RECORDER_STATE_RECORDING /**< In the middle of recording */
27 } sttd_recorder_state;
30 typedef int (*stt_recorder_audio_cb)(const void* data, const unsigned int length);
32 int sttd_recorder_create(stt_recorder_audio_cb callback, sttp_audio_type_e type, int channel, unsigned int sample_rate);
34 int sttd_recorder_destroy();
36 int sttd_recorder_start();
38 int sttd_recorder_stop();
45 #endif /* __STTD_RECORDER_H__ */