Giter Club home page Giter Club logo

moaudiouploadstreamer's Introduction

MOAudioUploadStreamer

An HTTP audio Streamer from iOS to server .

I used simpleURLConnection provided by Apple and modified it

(a little) so we can use it with audio dynamically (not already saved audio files) from the 'microphone' to the HTTP Server ...

in this project I used an audio file as a buffer and for saving audio also ...

I used kAudioFormatAppleIMA4 (I found it the best)and you may use any format you want but you need to go inside the code and make your modification..

you may use the SpeakHere example provided by apple to capture the audio buffers from the mic and send without a need for an intermediate file but that wont be necessary and add more complexity to the code ..

HOW TO USE

Simple way:Drag drop AudioStreamer classes to your project.

Harder but better : AudioStreamer is a 'framework' so you can drag drop AudioStremaer project into your project then add it to the 'Target Dependencies' and to 'Link Binary Libraries"

And you need to specify the header search paths for the AudioStreamer ..

In your project import the AudioStreamer

-if you used the simple way ( I guess you did ) just type '#import "MOAudioStreamer."

type '#import

and invoke MOAudiostreamerDelegate

OK now lets use the streamer

FIRST: declare and initialize

MOAudioStreamer *_moAudioStreamer=[MOAudioStreamer new];

you need to set some crucial properties _moAudioStreamer.streamerDelegate=self;

_moAudioStreamer.recordingPath=yourpath; _moAudioStreamer.webServiceURL=yourServiceURL; _moAudioStreamer.fileToSaveName=@"somename";//optional if you dont need to track the files recorded

in my webservice I need credential ,if you dont go to postRequestWithURL: method and change it so if you use it you can specify the password/username

_moAudioStreamer.userName=@"ur username";

_moAudioStreamer.password=@"your encrypted/non-encrypted password";

Finally

[_moAudioStreamer startStreaming]; //to begin streaming

[_moAudioStreamer stopStreaming];//to stop streaming

Dont Forget to watch out the delegates ..and thats it :)

please make your suggestions to improve and simplify the MOAudioStreamer .. Best wishes

LICENSE

MIT License

#Author

moaudiouploadstreamer's People

Contributors

moathothman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.