Skip to content

Commit

Permalink
Add optional aws_session_token for PollyTTSService
Browse files Browse the repository at this point in the history
  • Loading branch information
markbackman committed Jan 11, 2025
1 parent a8ae798 commit 71e1077
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 71e1077

Please sign in to comment.