rvc-harmonify 0.1.0
Python wrapper for fast inference with rvc
Requires Python: >=3.6

# **RVC Harmonify**

Python wrapper for fast inference with rvc



# how to use:
```
import os
from  rvc_harmonify import infer_audio

def main():
    # Specify the model name and the path to the audio file
    model_name = "your_model"  # Replace with your actual model name
    audio_path = "path/to/your/audio.wav"  # Replace with the path to your audio file

    # Call the infer_audio function with desired parameters
    output_path = infer_audio(
        model_name=model_name,
        audio_path=audio_path,
        f0_change=0,  # Change pitch (default: 0)
        f0_method="rmvpe",  # Method to use for F0 extraction
        min_pitch="50",  # Minimum pitch
        max_pitch="1100",  # Maximum pitch
        split_infer=True,  # Split audio into segments if True
        min_silence=500,  # Minimum silence duration to detect
        silence_threshold=-50,  # Silence threshold in dB
        keep_silence=100  # Silence duration to keep in milliseconds
    )

    if output_path:
        print(f"Inference completed successfully. Output saved to: {output_path}")
    else:
        print("Inference failed.")

if __name__ == "__main__":
    main()
```

# Explanation of Parameters
**model_name**: The name of the voice model to be used for inference.

**audio_path**: The path to the input audio file.

**f0_change**: Adjusts the pitch of the audio.

**f0_method**: The method used for fundamental frequency extraction (e.g., "rmvpe").

**min_pitch and max_pitch**: Define the pitch range for the audio.

**split_infer**: If True, splits the audio into silent and non-silent parts before inference.

**min_silence**: The minimum duration (in milliseconds) to consider a segment as silence.

**silence_threshold**: The dB level below which the audio is considered silent.

**keep_silence**: The duration (in milliseconds) of silence to retain in the output.




Here's a template for the Terms of Use and Disclaimer for your GitHub repository, **RVC_Harmonify**. Feel free to customize it further if necessary.

---

# Terms of Use

## 1. Acceptance of Terms
By accessing or using the RVC_Harmonify repository, you agree to comply with and be bound by these Terms of Use. If you do not agree with these terms, please do not use the repository.

## 2. License
The RVC_Harmonify repository/package is licensed under the MIT License. You may freely use, modify, and distribute the code, provided that you include the original copyright notice and license in any copies or substantial portions of the software.

## 3. User Responsibilities
Users are responsible for their own actions when using the code in this repository. You agree not to use the repository for any illegal or unauthorized purpose.

## 4. Changes to Terms
We reserve the right to modify these Terms of Use at any time. Any changes will be effective immediately upon posting the updated terms in the repository. Your continued use of the repository constitutes acceptance of the modified terms.

---

# Disclaimer

The materials in the RVC_Harmonify repository are provided on an "as is" basis. The author makes no representations or warranties of any kind, express or implied, regarding the completeness, accuracy, reliability, or availability of the repository or the information contained therein.

## 1. No Warranty
The author does not warrant that the repository will be free from errors or that its use will be uninterrupted. The user assumes all risks associated with using the code, including but not limited to potential loss of data or hardware malfunctions.

## 2. Limitation of Liability
In no event shall the author be liable for any direct, indirect, incidental, consequential, or punitive damages arising from the use or inability to use the repository, even if the author has been advised of the possibility of such damages.

## 3. Third-Party Links
The repository may contain links to third-party websites or services. The author is not responsible for the content or practices of these third-party sites and encourages users to review their terms of use and privacy policies.





## **Credits**

[Eempostor](https://discordapp.com/users/818050831034613771) - original project


[Applio](https://github.com/IAHispano/Applio-RVC-Fork) by [IAHispano](https://github.com/IAHispano) - The repo this colab is based on

[CNChTu](https://github.com/CNChTu) - [FCPE](https://github.com/CNChTu/FCPE) F0 method

[So Vits SVC](https://github.com/svc-develop-team/so-vits-svc) - [FCPE](https://github.com/CNChTu/FCPE) F0 method script

[ChatGPT](https://chat.openai.com/) - Helper

[Phind](https://www.phind.com/) - Helper