repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: "🎤 Audio" |
| #3 | --- |
| #4 | |
| #5 | |
| #6 | To use an audio as data source, just add `data_type` as `audio` and pass in the path of the audio (local or hosted). |
| #7 | |
| #8 | We use [Deepgram](https://developers.deepgram.com/docs/introduction) to transcribe the audiot to text, and then use the generated text as the data source. |
| #9 | |
| #10 | You would require an Deepgram API key which is available [here](https://console.deepgram.com/signup?jump=keys) to use this feature. |
| #11 | |
| #12 | ### Without customization |
| #13 | |
| #14 | ```python |
| #15 | import os |
| #16 | from embedchain import App |
| #17 | |
| #18 | os.environ["DEEPGRAM_API_KEY"] = "153xxx" |
| #19 | |
| #20 | app = App() |
| #21 | app.add("introduction.wav", data_type="audio") |
| #22 | response = app.query("What is my name and how old am I?") |
| #23 | print(response) |
| #24 | # Answer: Your name is Dave and you are 21 years old. |
| #25 | ``` |
| #26 |