Skip to content

Commit

Permalink
polly_tts_extension: remove on_init, fix sample_rate data type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen188 committed Aug 8, 2024
1 parent 49b269c commit 4277e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions agents/addon/extension/polly_tts/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"type": "string"
},
"sample_rate": {
"type": "int64"
"type": "string"
},
"lang_code": {
"type": "string"
Expand Down Expand Up @@ -60,4 +60,4 @@
}
]
}
}
}
6 changes: 0 additions & 6 deletions agents/addon/extension/polly_tts/polly_tts_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ def __init__(self, name: str):
self.bytes_per_sample = 2
self.number_of_channels = 1

def on_init(
self, rte: RteEnv, manifest: MetadataInfo, property: MetadataInfo
) -> None:
logger.info("PollyTTSExtension on_init")
rte.on_init_done(manifest, property)

def on_start(self, rte: RteEnv) -> None:
logger.info("PollyTTSExtension on_start")

Expand Down

0 comments on commit 4277e3b

Please sign in to comment.