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.
- 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 γ°οΈπ¨
- M4A π
- Waveform Audio File Format (WAV) γ°οΈ
Recording Audio | color recording audio waves |
---|---|
Display recorded audio waves | Trim Recorded video |
---|---|
- 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" />
- 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" />
- 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
- 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" />
- 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>
- This sample inspired by Audio Recorder
- This sample UI referance UI referance
Support it by joining stargazers for this repository.β
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.
For bugs, feature requests, and discussion please use GitHub Issues.
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.