This project aims to create an automated system for censoring Thai profanity in videos using Natural Language Processing (NLP) and audio waveform analysis.
The system processes video files to detect and censor Thai profanity in audio components.
- Data Collection:
- Gather a large dataset of Thai audio samples containing both clean and profane speech.
- Ensure the dataset is diverse and representative of different speakers, accents, and audio qualities.
- Data Preprocessing:
- Convert audio files to a consistent format (e.g., WAV) and sample rate.
- Extract audio features such as Mel-frequency cepstral coefficients (MFCCs) or spectrograms from the waveforms. (Not success doing it)
- Labeling:
- Annotate the dataset, marking the timestamps where profanity occurs. (0 non-profanity, 1 profanity)
- Create a list of Thai profanity words to be censored.
- Model Architecture:
- Use a deep learning model suitable for audio processing, such as:
- Convolutional Neural Networks (CNNs)
- Recurrent Neural Networks (RNNs) like LSTM or GRU
- Transformer-based models
- Or using Existing model: SpeechBrain, Wav2Vec 2.0, Keras Audio Classification Model.
- Use a deep learning model suitable for audio processing, such as:
- Training:
- Split the dataset into training, validation, and test sets.
- Train the model to identify profanity in the audio samples.
- Evaluation and Iteration:
- Test the model on the test set and real-world samples.
- Iterate and refine the model based on performance.
- Post-processing:
- Implement a method to censor or bleep out the identified profanity.
So, I am doing first one is waveform analysis approach which will detect word by word in audio format directly as you advised.
- OpenCV / FFmpeg for video processing
- PyDub / Librosa for audio processing
- Google Speech Recognition API or CMU Sphinx for speech-to-text
- PyThaiNLP for Thai language processing
- Custom profanity detection algorithm
- Librosa for waveform analysis
(Add instructions for setting up the project environment and installing dependencies)
(Add instructions on how to use the program, including input/output formats and any command-line arguments)
- Enhance speech recognition accuracy for Thai language
- Improve profanity detection using machine learning techniques
- Optimize performance for processing large video files
- Implement real-time processing capabilities
(Add your name and any other contributors)
(Add appropriate license information)