-
Notifications
You must be signed in to change notification settings - Fork 6
for glcc ace_music #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
day0n
wants to merge
3
commits into
modelscope:main
Choose a base branch
from
day0n:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# ACE Music Generator | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 迁移进examples文件夹 |
||
基于ACE-Step的音乐生成工具包 | ||
|
||
## 安装 | ||
|
||
首先安装ACE-Step库 | ||
|
||
```bash | ||
git clone https://github.com/ACE-Studio/ACE-Step.git | ||
cd ACE-Step | ||
pip install -r requirements.txt | ||
pip install -e . | ||
``` | ||
|
||
然后安装本项目 | ||
|
||
```bash | ||
cd ace_music_gen | ||
uv sync | ||
``` | ||
|
||
## 使用 | ||
|
||
运行程序 | ||
|
||
```bash | ||
uv run python main.py | ||
``` | ||
|
||
或者在代码中使用 | ||
|
||
```python | ||
from src.ace_music_gen import SimpleACEMusicGen | ||
|
||
generator = SimpleACEMusicGen() | ||
generator.setup_api("your_api_key") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
result = generator.generate_and_create_music("生成一首轻快的歌") | ||
``` | ||
|
||
## 项目结构 | ||
|
||
``` | ||
ace_music_gen/ | ||
├── src/ace_music_gen/ | ||
│ ├── generator.py # 音乐生成 | ||
│ ├── evaluator.py # 音频评估 | ||
│ └── llm_client.py # LLM客户端 | ||
└── main.py # 运行入口 | ||
``` | ||
|
||
## 配置 | ||
|
||
可以设置阿里云API密钥来生成更好的歌词 | ||
|
||
```python | ||
generator.setup_api("your_dashscope_api_key") | ||
``` | ||
|
||
## 依赖 | ||
|
||
- librosa | ||
- numpy | ||
- requests | ||
- pesq | ||
|
||
生成的音频文件保存在outputs目录下 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除