From d8dfc8da369fe0fb132740a7e4338821c58d8ea6 Mon Sep 17 00:00:00 2001
From: jifangw <164013213+jifangw@users.noreply.github.com>
Date: Thu, 10 Oct 2024 15:24:22 +0800
Subject: [PATCH] Update README.md

---
 README.md |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/README.md b/README.md
index 16d113f..7c49431 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,40 @@
 
 ## 🎨 Framework
 
-Following the traditional film studio workflow, we divide the whole virtual film production process into three sequential stages: planning, scriptwriting and cinematography, and apply the **Critique-Correct-Verify**、**Debate-Judge** collaboration strategy. After these stages, each line in the script is specified with the positions of the actors, their actions, their dialogue, and the chosen camera shots.
+Following the traditional film studio workflow, we divide the whole virtual film production process into three sequential stages: planning, scriptwriting and cinematography, and apply the **Critique-Correct-Verify**、**Debate-Judge** collaboration strategies. After these stages, each line in the script is specified with the positions of the actors, their actions, their dialogue, and the chosen camera shots.
 
 <div align=center><img src="https://github.com/HITsz-TMG/FilmAgent/blob/main/framework.png" height="100%" width="75%"/></div>
+
+## 🌟 How to use FilmAgent
+
+1. Install Package
+```Shell
+conda create -n filmagent python==3.9.18
+conda activate filmagent
+pip install -r env.txt
+```
+
+2. Create `Script` and `Logs` folders in the Filmagent directory, then replace the absolute pathname '/path/to/' with your specific path and modify the `topic` in the `main.py`. Run the following command to get the movie script created by the agents collaboratively:
+```bash
+cd /path/to/FilmAgent
+conda activate filmagent
+python main.py
+```
+
+3. We use [ChatTTS](https://github.com/2noise/ChatTTS) to provide voice acting for the characters in the script. You need to download the [ChatTTS](https://github.com/2noise/ChatTTS) repository to the `TTS` directory. Then replace the absolute pathname '/path/to/' with your specific path in the `tts_main.py`. Run the following command to deploy the text-to-speech service:
+```bash
+cd /path/to/TTS
+conda create -n tts python==3.9.18
+conda activate tts
+pip install -r tts_env.txt
+python tts_main.py
+```
+
+4. Modify the `Script_path`, `actos_path`, `Audio_path` and `url` in the `GenerateAudio.py`. Run the following command to get the audio files:
+```bash
+cd /path/to/FilmAgent
+conda activate filmagent
+python GenerateAudio.py
+```
+
+5. 

--
Gitblit v1.8.0