From e47cec37c29df4139bce89a3cb0fbf02cc1c9491 Mon Sep 17 00:00:00 2001
From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
Date: Tue, 16 Jan 2024 18:44:09 -0500
Subject: [PATCH 1/3] Update social card color
---
mkdocs.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mkdocs.yml b/mkdocs.yml
index 517a88f0d..bf07cc419 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -107,7 +107,8 @@ plugins:
cards: !ENV [MKDOCS_SOCIAL_CARDS, false]
cards_layout_options:
font_family: Inter
- background_color: "#2d6df6"
+ # background_color: "#2d6df6"
+ background_color: "#181544" # marvin blue
- awesome-pages
- autolinks
- mkdocstrings:
From bfb9ffc154ec11bb3b176e8c73820651b351f65d Mon Sep 17 00:00:00 2001
From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
Date: Tue, 16 Jan 2024 18:44:15 -0500
Subject: [PATCH 2/3] Add image to what is marvin?
---
docs/welcome/what_is_marvin.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/welcome/what_is_marvin.md b/docs/welcome/what_is_marvin.md
index 29a991384..ae6f2d785 100644
--- a/docs/welcome/what_is_marvin.md
+++ b/docs/welcome/what_is_marvin.md
@@ -1,5 +1,7 @@
# What is Marvin?
+
+
Marvin is a lightweight AI toolkit for building natural language interfaces that are reliable, scalable, and easy to trust.
Each of Marvin's tools is simple and self-documenting, using AI to solve common but complex challenges like entity extraction, classification, and generating synthetic data. Each tool is independent and incrementally adoptable, so you can use them on their own or in combination with any other library. Marvin is also multi-modal, supporting both image and audio generation as well using images as inputs for extraction and classification.
From a6c001f9e923f7d056902e97f3c1e99bbd80080a Mon Sep 17 00:00:00 2001
From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>
Date: Tue, 16 Jan 2024 18:51:06 -0500
Subject: [PATCH 3/3] Show audio files being saved
---
.../assets/audio/{hello.mp3 => fancy_computer.mp3} | Bin
docs/docs/audio/speech.md | 13 ++++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
rename docs/assets/audio/{hello.mp3 => fancy_computer.mp3} (100%)
diff --git a/docs/assets/audio/hello.mp3 b/docs/assets/audio/fancy_computer.mp3
similarity index 100%
rename from docs/assets/audio/hello.mp3
rename to docs/assets/audio/fancy_computer.mp3
diff --git a/docs/docs/audio/speech.md b/docs/docs/audio/speech.md
index 6387b9f24..a9f7b869a 100644
--- a/docs/docs/audio/speech.md
+++ b/docs/docs/audio/speech.md
@@ -19,12 +19,15 @@ Marvin can generate speech from text.
```python
import marvin
- marvin.speak("I sure like being inside this fancy computer!")
+ audio = marvin.speak("I sure like being inside this fancy computer!")
```
!!! success "Result"
+ ```python
+ audio.stream_to_file("path/to/fancy_computer.mp3")
+ ```
@@ -38,10 +41,14 @@ Marvin can generate speech from text.
def say_hello(name: str):
return f'Hello, {name}! How are you doing today?'
- say_hello("Arthur")
+
+ audio = say_hello("Arthur")
```
!!! success "Result"
+ ```python
+ audio.stream_to_file("path/to/hello_arthur.mp3")
+ ```