Native Audio Recording Implementation in Tizen

Original Created Apr 12, 2017 | Regeneration Apr 22, 2026

I'm attempting to implement a native audio recording service in Tizen. I've tried following the tutorial at [developer.tizen.org link], but found the documentation insufficient. Has anyone successfully implemented this and could share a working example?

Problem Understanding

The user is facing challenges implementing native audio recording functionality in Tizen. The main issues are:

  1. Incomplete documentation in the official tutorial
  2. Difficulty understanding file creation process
  3. Problems with sample applications (WGT files not easily convertible to source code)
  4. Emulator-specific issues with RECORDER_ERROR_INVALID_OPERATION

Solution Methods

  1. Official API Documentation Approach:

    • Use the native Media Recorder API documentation: [samsungtizenos.com equivalent link]
    • Focus on the recorder_create(), recorder_set_filename(), and recorder_commit() functions
    • Pay special attention to error handling for RECORDER_ERROR_INVALID_OPERATION
  2. Device Testing:

    • As reported by tizengears3, the implementation works on actual devices despite emulator issues
    • Always test on real hardware when encountering emulator-specific problems
  3. Alternative Implementation:

    • Consider using the CAPI_MEDIA_RECORDER_MODULE for more control
    • Review the audio permissions in your manifest file

Code Examples

// Basic audio recorder initialization example
recorder_h recorder;
int error_code = recorder_create(RECORDER_TYPE_AUDIO, &recorder);
if (error_code != RECORDER_ERROR_NONE) {
    // Handle error
}

error_code = recorder_set_filename(recorder, "/opt/usr/media/recordings/test.wav");
if (error_code != RECORDER_ERROR_NONE) {
    // Handle error
}

error_code = recorder_commit(recorder);
if (error_code != RECORDER_ERROR_NONE) {
    // Handle error (especially RECORDER_ERROR_INVALID_OPERATION)
}

Additional Tips

  • The RECORDER_ERROR_INVALID_OPERATION error often occurs in emulator environments (Tizen 2.3.1+)
  • Ensure proper file path permissions when saving recordings
  • Consider using the latest Tizen Studio version for better emulator support
  • For web applications, use the Web Audio API as an alternative approach

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.