[Update] テレメトリ機能の改善と不要なコードの削除

This commit is contained in:
misyaguziya
2026-01-19 21:12:16 +09:00
parent 597b0e15b0
commit 1656620ce4
8 changed files with 175 additions and 306 deletions

View File

@@ -284,7 +284,6 @@ class Controller:
)
elif isinstance(message, str) and len(message) > 0:
model.telemetryTouchActivity()
model.telemetryTrackCoreFeature("mic_speech_to_text")
translation = []
transliteration_message = []
@@ -457,7 +456,6 @@ class Controller:
},
)
elif isinstance(message, str) and len(message) > 0:
model.telemetryTouchActivity()
model.telemetryTrackCoreFeature("speaker_speech_to_text")
translation = []
transliteration_message = []
@@ -640,7 +638,6 @@ class Controller:
id = data["id"]
message = data["message"]
if len(message) > 0:
model.telemetryTouchActivity()
model.telemetryTrackCoreFeature("text_input")
translation = []
transliteration_message: List[Any] = []
@@ -2607,7 +2604,7 @@ class Controller:
def setEnableTelemetry(*args, **kwargs) -> dict:
if config.ENABLE_TELEMETRY is False:
config.ENABLE_TELEMETRY = True
model.telemetryInit(enabled=config.ENABLE_TELEMETRY, app_version=config.VERSION)
model.telemetryInit(enabled=True, app_version=config.VERSION)
return {"status":200, "result":config.ENABLE_TELEMETRY}
@staticmethod