Skip to content

Commit

Permalink
Fix elevenlabs voice
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Jul 23, 2024
1 parent 1407a12 commit 2ce8977
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/griptape-framework/engines/audio-engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from griptape.engines import TextToSpeechEngine
driver = ElevenLabsTextToSpeechDriver(
api_key=os.getenv("ELEVEN_LABS_API_KEY"),
model="eleven_multilingual_v2",
voice="Rachel",
voice="Laura",
)

engine = TextToSpeechEngine(
Expand Down
7 changes: 4 additions & 3 deletions tests/unit/drivers/sql/test_snowflake_sql_driver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dataclasses import dataclass
from typing import Any
from unittest import mock

import pytest
Expand Down Expand Up @@ -36,8 +37,8 @@ def mock_snowflake_engine(self, mocker):
items_mock = mocker.MagicMock(name="items")
items_mock_2 = mocker.MagicMock(name="items2")

items_mock.items.return_value = [("first_name", "Tony"), ("last_name", "Hawk")]
items_mock_2.items.return_value = [("first_name", "Bob"), ("last_name", "Ross")]
items_mock._mapping = [("first_name", "Tony"), ("last_name", "Hawk")]
items_mock_2._mapping = [("first_name", "Bob"), ("last_name", "Ross")]

result_mock.return_value.returns_rows = True
result_mock.__iter__.return_value = iter([items_mock, items_mock_2])
Expand Down Expand Up @@ -71,7 +72,7 @@ def get_connection():
return new_driver

def test_connection_function_wrong_return_type(self):
def get_connection():
def get_connection() -> Any:
return object

with pytest.raises(ValueError):
Expand Down

0 comments on commit 2ce8977

Please sign in to comment.