From d768335a583e929e5c1fc2aa878907a463c6540b Mon Sep 17 00:00:00 2001 From: Paviththanan <55050467+rekcah-pavi@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:51:02 +0530 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index 566cbff..486596e 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,29 @@ with open("chrome-net-export-log.json",'r') as f: print(cookies) ``` +*** + +## Usage +## Setup gemini +```python +from geminikit import Gemini +gemini = Gemini(cookies) + +``` + +### Ask a message +```python +res = gemini.ask("hello") +print(res['text']) +``` + + +### Text to Voice +```python +res = gemini.speech("hello") +with open("a.wav","wb") as f: + f.write(res) +```