The feature extraction model we propose is as follows: By utilizing the intermediate layer of the codec model Encodec, we represent speech as positive integer values. The preprocessed speech is then used as the input for BERT to extract features from the speech.
We conducted experiments using the proposed feature extraction model as follows. Utilizing each layer and leveraging the input values from each layer, we carried out various experiments.
The experimental results are as follows:
- https://huggingface.co/docs/transformers/model_doc/bert
- https://huggingface.co/docs/transformers/model_doc/encodec
- The experimental environment.
system_info.txt
-
Python 3.8 was used for the experiments.
-
Other environmental configurations are as follows:
pip install -r requirement.txt
- Using Encodec, the speech is preprocessed and stored as positive integer values.
python dataset_code/dataset_loader.py
- The real-to-fake ratio of the preprocessed speech, represented as positive integer values, is adjusted to 1:1.
python dataset_code/dataset_loader_edit.py
If using different data, you need to modify the paths in the code accordingly.
python model_code/bert_train.py
python model_code/bert_test.py
python inference.py


