Docs cleanup before 0.0.97 release
This commit is contained in:
@@ -935,8 +935,8 @@ class RTVIObserverParams:
|
|||||||
system_logs_enabled: Indicates if system logs should be sent.
|
system_logs_enabled: Indicates if system logs should be sent.
|
||||||
errors_enabled: [Deprecated] Indicates if errors messages should be sent.
|
errors_enabled: [Deprecated] Indicates if errors messages should be sent.
|
||||||
skip_aggregator_types: List of aggregation types to skip sending as tts/output messages.
|
skip_aggregator_types: List of aggregation types to skip sending as tts/output messages.
|
||||||
Note: if using this to avoid sending secure information, be sure to also disable
|
Note: if using this to avoid sending secure information, be sure to also disable
|
||||||
bot_llm_enabled to avoid leaking through LLM messages.
|
bot_llm_enabled to avoid leaking through LLM messages.
|
||||||
bot_output_transforms: A list of callables to transform text before just before sending it
|
bot_output_transforms: A list of callables to transform text before just before sending it
|
||||||
to TTS. Each callable takes the aggregated text and its type, and returns the
|
to TTS. Each callable takes the aggregated text and its type, and returns the
|
||||||
transformed text. To register, provide a list of tuples of
|
transformed text. To register, provide a list of tuples of
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ def build_elevenlabs_voice_settings(
|
|||||||
class PronunciationDictionaryLocator(BaseModel):
|
class PronunciationDictionaryLocator(BaseModel):
|
||||||
"""Locator for a pronunciation dictionary.
|
"""Locator for a pronunciation dictionary.
|
||||||
|
|
||||||
Attributes:
|
Parameters:
|
||||||
pronunciation_dictionary_id: The ID of the pronunciation dictionary.
|
pronunciation_dictionary_id: The ID of the pronunciation dictionary.
|
||||||
version_id: The version ID of the pronunciation dictionary.
|
version_id: The version ID of the pronunciation dictionary.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ def parse_start_end_tags(
|
|||||||
class TextPartForConcatenation:
|
class TextPartForConcatenation:
|
||||||
"""Class representing a part of text for concatenation with concatenate_aggregated_text.
|
"""Class representing a part of text for concatenation with concatenate_aggregated_text.
|
||||||
|
|
||||||
Attributes:
|
Parameters:
|
||||||
text: The text content.
|
text: The text content.
|
||||||
includes_inter_part_spaces: Whether any necessary inter-frame
|
includes_inter_part_spaces: Whether any necessary inter-frame
|
||||||
(leading/trailing) spaces are already included in the text.
|
(leading/trailing) spaces are already included in the text.
|
||||||
|
|||||||
@@ -26,15 +26,15 @@ class MatchAction(Enum):
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
REMOVE: The text along with its delimiters will be removed from the streaming text.
|
REMOVE: The text along with its delimiters will be removed from the streaming text.
|
||||||
Sentence aggregation will continue on as if this text did not exist.
|
Sentence aggregation will continue on as if this text did not exist.
|
||||||
KEEP: The delimiters will be removed, but the content between them will be kept.
|
KEEP: The delimiters will be removed, but the content between them will be kept.
|
||||||
Sentence aggregation will continue on with the internal text included.
|
Sentence aggregation will continue on with the internal text included.
|
||||||
AGGREGATE: The delimiters will be removed and the content between will be treated
|
AGGREGATE: The delimiters will be removed and the content between will be treated
|
||||||
as a separate aggregation. Any text before the start of the pattern will be
|
as a separate aggregation. Any text before the start of the pattern will be
|
||||||
returned early, whether or not a complete sentence was found. Then the pattern
|
returned early, whether or not a complete sentence was found. Then the pattern
|
||||||
will be returned. Then the aggregation will continue on sentence matching after
|
will be returned. Then the aggregation will continue on sentence matching after
|
||||||
the closing delimiter is found. The content between the delimiters is not
|
the closing delimiter is found. The content between the delimiters is not
|
||||||
aggregated by sentence. It is aggregated as one single block of text.
|
aggregated by sentence. It is aggregated as one single block of text.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
REMOVE = "remove"
|
REMOVE = "remove"
|
||||||
@@ -133,17 +133,15 @@ class PatternPairAggregator(SimpleTextAggregator):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
type: Identifier for this pattern pair. Should be unique and ideally descriptive.
|
type: Identifier for this pattern pair. Should be unique and ideally descriptive.
|
||||||
(e.g., 'code', 'speaker', 'custom'). type can not be 'sentence' or 'word' as
|
(e.g., 'code', 'speaker', 'custom'). type can not be 'sentence' or 'word' as
|
||||||
those are reserved for the default behavior.
|
those are reserved for the default behavior.
|
||||||
start_pattern: Pattern that marks the beginning of content.
|
start_pattern: Pattern that marks the beginning of content.
|
||||||
end_pattern: Pattern that marks the end of content.
|
end_pattern: Pattern that marks the end of content.
|
||||||
action: What to do when a complete pattern is matched:
|
action: What to do when a complete pattern is matched.
|
||||||
- MatchAction.REMOVE: Remove the matched pattern from the text.
|
|
||||||
- MatchAction.KEEP: Keep the matched pattern in the text and treat it as
|
- MatchAction.REMOVE: Remove the matched pattern from the text.
|
||||||
normal text. This allows you to register handlers for
|
- MatchAction.KEEP: Keep the matched pattern in the text and treat it as normal text. This allows you to register handlers for the pattern without affecting the aggregation logic.
|
||||||
the pattern without affecting the aggregation logic.
|
- MatchAction.AGGREGATE: Return the matched pattern as a separate aggregation object.
|
||||||
- MatchAction.AGGREGATE: Return the matched pattern as a separate
|
|
||||||
aggregation object.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Self for method chaining.
|
Self for method chaining.
|
||||||
|
|||||||
Reference in New Issue
Block a user