Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6004481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:16:09+00:00 2026-05-23T01:16:09+00:00

How to save the recorded audio file which is recorded using sound_record.js from Titanium

  • 0

How to save the recorded audio file which is recorded using sound_record.js from Titanium KickenSink Source.

We have,

var file // global variable.

file = recording.stop(); // file will have recorded content which we will convert into media.sound in order to play.

var newDir = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'audioclips');
Ti.API.info("Created mydir: " + newDir.createDirectory());

var newFile = Titanium.Filesystem.getFile(newDir.nativePath,'newfile.wav'); 
newFile.write(file.read());

But i am able to save the file which is recorded?

I am not getting how to save this recorded file, I dont knw where i am going wrong.

Please Help,
Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:16:10+00:00Added an answer on May 23, 2026 at 1:16 am

    I am guessing your are having problem with saving the file. In last line just change

    newFile.write(file.read());
    

    to

     newFile.write(file);
    

    This should do the trick for you.
    Hope this helps.

    Edited:

    For saving the file try this code:

    var newFile =Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'your_file.wav');
    
    // Write the data.
    newFile.write( file );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to save the file which is recorded in sound_record.js File from Appcellrator Titanium
I save stuff in an Isolated Storage file (using class IsolatedStorageFile). It works well,
I want to save recorded file and after that i want to save in
I am trying to save a recorded video to the library using the UIImagePickerController
I have recorded audio to a CaptureBuffer, but I can't figure out how to
I have realised that by using the Amazon S3 service directly, I can save
I currently have a dropdownlist which is populated via an SQLDataSource from the Module
I have a situation where I will be recording audio files and save it
Given: I recorded a simple macro in Openoffice to save my worksheet as a
i save in mysql database the time using NOW() function. how can i change

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.