{"id":21765943,"url":"https://github.com/narazaka/miyojs-filter-talking","last_synced_at":"2026-05-06T12:42:45.428Z","repository":{"id":21775365,"uuid":"25097670","full_name":"Narazaka/miyojs-filter-talking","owner":"Narazaka","description":"talking - realtime talking flag","archived":false,"fork":false,"pushed_at":"2014-10-15T14:04:17.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T16:06:15.376Z","etag":null,"topics":["miyojs","ukagaka"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Narazaka.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-11T22:28:16.000Z","updated_at":"2023-10-16T15:44:37.000Z","dependencies_parsed_at":"2022-08-19T16:50:56.956Z","dependency_job_id":null,"html_url":"https://github.com/Narazaka/miyojs-filter-talking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fmiyojs-filter-talking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fmiyojs-filter-talking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fmiyojs-filter-talking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Narazaka%2Fmiyojs-filter-talking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Narazaka","download_url":"https://codeload.github.com/Narazaka/miyojs-filter-talking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244741490,"owners_count":20502291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["miyojs","ukagaka"],"created_at":"2024-11-26T13:14:33.061Z","updated_at":"2026-05-06T12:42:43.958Z","avatar_url":"https://github.com/Narazaka.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"talking - ただいま発話中\r\n========================================\r\n\r\nこれはなにか\r\n----------------------------------------\r\n\r\nこれはJavaScriptによる伺か用SHIORIサブシステムの実装である美代(miyoshiori)の辞書フィルタプラグインです。\r\n\r\n発話状態を検知するためのフィルタです。\r\n\r\nインストール\r\n----------------------------------------\r\n\r\n### 一般\r\n\r\n    npm install miyojs-filter-talking\r\n\r\n### ゴーストに追加する場合\r\n\r\nghost/masterをカレントディレクトリとして同様に\r\n\r\n    npm install miyojs-filter-talking\r\n\r\n含まれるフィルタ\r\n----------------------------------------\r\n\r\n### talking\r\n\r\n発話状態を検知するフィルタです。\r\n\r\nargumentをvalueとして扱い、必要なイベントを付加した後のvalueを返します。\r\n\r\n通常value_filterとして使います。\r\n\r\n依存\r\n----------------------------------------\r\n\r\nこのフィルタは以下に依存します。\r\n\r\n- [miyojs-filter-variables](https://github.com/Narazaka/miyojs-filter-variables.git)\r\n\r\n使用方法\r\n----------------------------------------\r\n\r\nMiyoの辞書ファイルでフィルタを読み込み、talking_initializeを実行します。\r\n\r\nまたvalue_filtersに登録します。\r\n\r\n    _load:\r\n    \tfilters: [..., append_value_filters, talking_initialize, ...]\r\n    \targument:\r\n    \t\ttalking_initialize:\r\n    \t\t\ttimeout: 30\r\n    \t\tappend_value_filters:\r\n    \t\t\t- talking\r\n\r\n### talking_initialize\r\n\r\ntalking_initializeはargument.talking_initialize.timeoutをタイムアウト秒数として設定します。デフォルトは25秒です。デフォルトは変更される可能性があるので設定することをおすすめします。\r\n\r\nこのタイムアウト時間はバルーンがユーザーに閉じられた場合等に発話終了イベントが発生しないので、発話終了イベントが発生しない場合に発話中フラグをリセットするために設定されます。\r\n\r\nこの値を0にすることでタイムアウトの発生を抑止できます。\r\n\r\nベースウェアの機能でOnBalloonBreak、OnBalloonClose等が発生する場合は、OnBalloonBreak、OnBalloonClose等に\\![raise,OnTalkingFilterTalkEnd]を設定し、この値を0にすることで、タイムアウトに頼らずにバルーンが閉じられた場合に対処できます。\r\n\r\n### 動作\r\n\r\ntalking_initializeを実行した後value_filtersに登録されると、全ての発話の先頭と末尾に\\![raise]を付加してイベントを発生させることでリアルタイムな発話状態を検知します。\r\n\r\nこのフィルタはMiyoインスタンスの辞書にOnTalkingFilterTalkBeginとOnTalkingFilterTalkEndエントリを追加するので、これらの名前を使用しないでください。\r\n\r\n### 発話中フラグ variables_temporary.talking\r\n\r\nMiyoインスタンスのvariables_temporary.talkingに発話中フラグがセットされます。\r\n発話中はtrue、それ以外はfalseです。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarazaka%2Fmiyojs-filter-talking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarazaka%2Fmiyojs-filter-talking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarazaka%2Fmiyojs-filter-talking/lists"}