Browse Source

add README.md

j7891618123 3 years ago
parent
commit
d8d889568d
2 changed files with 41 additions and 0 deletions
  1. 37 0
      README.md
  2. 4 0
      requirements.txt

+ 37 - 0
README.md

@@ -0,0 +1,37 @@
+# Slides API with AI Anchor
+**Convert google slides to AI anchor video.**
+
+* Use **slide title** as the video title.
+* Use **slide** as the picture in the video.
+* Take **notes** as lecture notes.
+* Use **time** as the client id.
+* Currently only **Peggy** is selected as the anchor.
+
+
+
+## Install
+```bash
+pip install -r requirements.txt
+```
+Note: See [requirements.txt](requirements.txt) for more details.
+
+## Usage
+### Step 1
+
+Create a google slide to be converted into a video.
+
+### Step 2
+
+Add or share permissions to **service@dstest-1-292707.iam.gserviceaccount.com**
+
+### Step 3
+
+Find the **presentation id** in the address bar and execute the following command.
+```bash
+python slides_API_AI_anchor.py --presentation_id {presentation_id} --save_to_local True
+```
+
+* `--presentation_id` *(string, required)* – Choose which slide to convert to video.
+* `--save_to_local` *(bool, optional)* – Save the memo locally. If `True`, the img and memo file will be saved in a folder named as the title of the slide (Default: `True`)
+
+Note: presentation id ![](https://i.imgur.com/3ew0aZF.png)

+ 4 - 0
requirements.txt

@@ -0,0 +1,4 @@
+google_auth_oauthlib==0.4.4
+requests==2.22.0
+google_api_python_client==2.14.0
+protobuf==3.17.3