Coder Social home page Coder Social logo

shwetachauhan18 / ssaudiorecorderwithwaveform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shwetachauhan-simform/ssaudiorecorderwithwaveform

1.0 1.0 0.0 13.57 MB

SSAudioRecorderWithWaveForm is recording audio with wave form. πŸŽ‰

License: Apache License 2.0

Kotlin 100.00%

ssaudiorecorderwithwaveform's Introduction

SSAudioRecorderWithWaveForm

Audio recording with wave form

Build Status Kotlin Version Platform API

SSAudioRecorderWithWaveForm is recording audio with wave form data, you can record audio using the app and also you can also pickup already recorded audio from gallery. The best thing is our application is after recording we can trim that audio from start point to end point using slider.

Features

  • Recording audio 🎀
  • Playing back recordings ▢️
  • Make recordings in M4A and WAV πŸ”ˆ
  • Displaying waveform of the recording 〰️‒¨‒.¸¸♬
  • Import audio files πŸ“
  • Trim recorded/imported audio πŸ“‡
  • Customise trim marker πŸ–ŠοΈ
  • Customise waveform color γ€°οΈπŸŽ¨

Two recording formats are available:

  • M4A 🌊
  • Waveform Audio File Format (WAV) 〰️

🎬 Preview

Recording Audio color recording audio waves
Display recorded audio waves Trim Recorded video

How to Use

  1. Add display wave control view in you screen while recording video.
<com.wave.audiorecording.audioplayer.WaveformView
    android:id="@+id/record"
    android:layout_width="wrap_content"
    android:layout_height="@dimen/_200sdp"
    android:layout_marginTop="@dimen/_10sdp"
    android:layout_marginBottom="@dimen/_10sdp"
    android:background="@color/secoundryColor"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/appLayout" />
  1. Add wave recording or already pickup audio with using WaveformViewTrim control in design.
<com.wave.audiorecording.audioplayer.trim.WaveformViewTrim
    android:id="@+id/audioWaveform"
    android:layout_width="match_parent"
    android:layout_height="@dimen/_85sdp"
    android:layout_centerInParent="true"
    android:layout_marginRight="@dimen/_10sdp" />
  1. We can add MarkerView for Trim slider using MarkerView in your design.
<com.wave.audiorecording.audioplayer.trim.MarkerView
    android:id="@+id/markerStart"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerVertical="true"
    android:contentDescription="@string/txt_start_marker"
    android:nextFocusDown="@+id/markerEnd"
    android:paddingStart="@dimen/_3sdp"
    android:paddingEnd="@dimen/_3sdp"
    app:srcCompat="@drawable/ic_left_trim" />       // starting trim slider
            
<com.wave.audiorecording.audioplayer.trim.MarkerView
    android:id="@+id/markerEnd"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerVertical="true"
    android:contentDescription="@string/txt_end_marker"
    android:nextFocusUp="@+id/markerStart"
    android:nextFocusDown="@+id/info"
    android:paddingStart="@dimen/_3sdp"
    android:paddingEnd="@dimen/_3sdp"
    app:srcCompat="@drawable/ic_right_trim" />      // ending trim slider
  1. we have to add this two permission in AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
  1. We change change color of wave form while recording, display recorded waves form and current position of slider.
<color name="recording_waves_color">#FFFFFF</color>
<color name="recorded_waves_color">#FFFFFF</color>
<color name="recorded_current_index_line_color">#ffd600</color>

Credits:

UI Referance:

Find this sample useful? ❀️

Support it by joining stargazers for this repository.⭐

🀝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! πŸ’ͺ Check out our Contributing Guide for ideas on contributing.

Bugs and Feedback

For bugs, feature requests, and discussion please use GitHub Issues.

License

Copyright 2021 Simform Solutions

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and limitations under the License.

ssaudiorecorderwithwaveform's People

Contributors

mayurpatel-simformsolutions avatar shwetachauhan-simform avatar shwetachauhan18 avatar mobile-simformsolutions avatar

Stargazers

Asif Javed 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.