Skip to content

Commit

Permalink
Merge pull request #965 from pipecat-ai/mb/aws-add-session-token
Browse files Browse the repository at this point in the history
Add optional aws_session_token for PollyTTSService
  • Loading branch information
markbackman authored Jan 12, 2025
2 parents 53bfdfd + 71e1077 commit 12b1e1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Added `aws_session_token` to the `PollyTTSService`.

- Changed the default model for `PlayHTHttpTTSService` to `Play3.0-mini-http`.

- api_key, aws_access_key_id and region are no longer required parameters for the PollyTTSService (AWSTTSService)
Expand Down
2 changes: 2 additions & 0 deletions src/pipecat/services/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def __init__(
*,
api_key: Optional[str] = None,
aws_access_key_id: Optional[str] = None,
aws_session_token: Optional[str] = None,
region: Optional[str] = None,
voice_id: str = "Joanna",
sample_rate: int = 24000,
Expand All @@ -133,6 +134,7 @@ def __init__(
"polly",
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=api_key,
aws_session_token=aws_session_token,
region_name=region,
)
self._settings = {
Expand Down

0 comments on commit 12b1e1d

Please sign in to comment.