
Android has a built in microphone through which you can capture audio and store it , or play it in your phone. There are many ways to do that but with this dialog you can do all thats with only one dialog.
You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)

Maven
<dependency>
<groupId>net.alhazmy13.MediaRecorderDialog</groupId>
<artifactId>libary</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
dependencies {
compile 'net.alhazmy13.MediaRecorderDialog:libary:1.0.0'
}
new MediaRecorderDialog.Builder(MainActivity.this)
.setOutputFormat(MediaRecorderDialog.OutputFormat.MPEG_4)
.setAudioEncoder(MediaRecorderDialog.AudioEncoder.AAC)
.setTitle("Recording,,,")
.setMessage("Press the button")
.setOnSaveButtonClickListener(new OnSaveButtonClickListener() {
@Override
public void onSucceed(String path) {
// Toast.makeText(MainActivity.this,path,Toast.LENGTH_SHORT).show();
}
@Override
public void onFailure() {
//Toast.makeText(MainActivity.this,"Failure",Toast.LENGTH_SHORT).show();
}
})
.show();
OnSaveButtonClickListenerIn order to receive the path of file, you will need to implement the OnSaveButtonClickListener interfaces.
@Override
public void onSucceed(String path) {
//Your Code
}
@Override
public void onFailure() {
//Your Code
}
setTitle You can change the title of Dialog .setTitle("Recording,,,")
setMessage to change the message .setMessage("Press the button")
setOutputFormat You can change the Output format by passing the format from MediaRecorderDialog.OutputFormat.setOutputFormat(MediaRecorderDialog.OutputFormat.MPEG_4)
setAudioEncoder You can change the Encoder by passing the value from MediaRecorderDialog.AudioEncoder.setAudioEncoder(MediaRecorderDialog.AudioEncoder.AAC)
You can theme the dialog by overwriting the color resources in your project.
<color name="media_recorder_colorPrimary">#00796B</color>
<color name="media_recorder_background">#009688</color>
<color name="media_recorder_bar">#80CBC4</color>
Copyright 2015 alhazmy
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.
$ claude mcp add MediaRecorderDialog \
-- python -m otcore.mcp_server <graph>