#Sound Recognition

1 messages · Page 1 of 1 (latest)

junior perch
#

Im trying to create an app for android that recognize a sound of baby crying or sirene it can be in java or kotlin but my android studio isnt working with the apk that i found on Git to use as example to create my own code..

empty roostBOT
#

<@&1008423204219531294> please have a look, thanks.

empty roostBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

#

Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.

#

If you are facing issues with the APK file you found on Git, it could be due to compatibility issues or other technical problems. Instead of relying on an external APK, I would recommend building the sound recognition functionality directly into your app using a library or API.

One popular library for sound recognition is TensorFlow, which provides machine learning capabilities for Android apps. You can train a model to recognize specific sounds like baby crying or sirens and integrate it into your app.

Here's a step-by-step guide to help you get started:

  1. Set up your development environment: Make sure you have the latest version of Android Studio installed and configured properly.

  2. Create a new Android project: Open Android Studio and create a new project with an appropriate name and package.

  3. Add TensorFlow dependencies: Open your app-level build.gradle file and add the TensorFlow Lite dependency:

#
implementation 'org.tensorflow:tensorflow-lite:x.x.x'
#

Replace x.x.x with the latest version available.

  1. Train a sound recognition model: You will need labeled audio data for training purposes. Collect a dataset of baby crying and siren sounds, label them accordingly, and use TensorFlow's machine learning tools to train a model.

  2. Convert the trained model to TensorFlow Lite format: After training, convert the model to TensorFlow Lite format using the TensorFlow Lite Converter tool.

  3. Add the converted model to your project: Copy the converted .tflite file into your project's assets folder.

  4. Load and use the model in your app: In your app code, load the TensorFlow Lite model from assets using Interpreter class provided by TensorFlow Lite API. Pass audio data (e.g., recorded sound) as input to the interpreter and get predictions as output.

This is just a high-level overview of how you can implement sound recognition in your Android app using TensorFlow. You may need to dive deeper into TensorFlow's documentation and examples to understand the specific details and code implementation.

Remember to handle necessary permissions for audio recording and ensure proper error handling in your app.