クエリ編集

テキストからアクセント句を得る

テキストからアクセント句を得ます。<br> is_kanaがtrueのとき、テキストは次の AquesTalk 風記法で解釈されます。デフォルトはfalseです。

  • 全てのカナはカタカナで記述される
  • アクセント句は/またはで区切る。で区切った場合に限り無音区間が挿入される。
  • カナの手前に_を入れるとそのカナは無声化される
  • アクセント位置を'で指定する。全てのアクセント句にはアクセント位置を1つ指定する必要がある。
  • アクセント句末に(全角)を入れることにより疑問文の発音ができる。

AivisSpeech Engine では英単語は常に自動的に自然なカタカナ読みに変換されて読み上げられる仕様のため、enable_katakana_english は指定不要です(常に無視されます)。

post/accent_phrases

Query parameters

textstring required
speakerinteger required
is_kanaboolean
enable_katakana_englishboolean

AivisSpeech Engine ではサポートされていないパラメータです (常に無視されます) 。

AivisSpeech Engine ではサポートされていないパラメータです (常に無視されます) 。

core_versionstring

AivisSpeech Engine ではサポートされていないパラメータです (常に無視されます) 。

AivisSpeech Engine ではサポートされていないパラメータです (常に無視されます) 。

Response

Successful Response

accentinteger required

アクセント箇所

is_interrogativeboolean

疑問系かどうか

Changes

Changed in 16 of the 50 revisions of this API.23956

    • added the new optional query request parameter enable_katakana_english

      new-optional-request-parameter

    • added the optional property detail/items/ctx to the response with the 422 status

      response-optional-property-added

    • added the optional property detail/items/input to the response with the 422 status

      response-optional-property-added

    • api operation id accent_phrases_accent_phrases_post removed and replaced with accent_phrases

      api-operation-id-removed

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 54501f4624fd17See the full diff
    • the items/pause_mora response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property items/pause_mora/consonant to the response with the 200 status

      response-optional-property-added

    • added the optional property items/pause_mora/consonant_length to the response with the 200 status

      response-optional-property-added

    • removed Mora from the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property items/pause_mora/pitch to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/text to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/vowel to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/vowel_length to the response with the 200 status

      response-required-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • e86c0159e1bd521See the full diff
    • the items/pause_mora response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the required property items/pause_mora/pitch from the response with the 200 status

      response-required-property-removed

    • removed the required property items/pause_mora/text from the response with the 200 status

      response-required-property-removed

    • removed the required property items/pause_mora/vowel from the response with the 200 status

      response-required-property-removed

    • removed the required property items/pause_mora/vowel_length from the response with the 200 status

      response-required-property-removed

    • removed the optional property items/pause_mora/consonant from the response with the 200 status

      response-optional-property-removed

    • removed the optional property items/pause_mora/consonant_length from the response with the 200 status

      response-optional-property-removed

    • added Mora to the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 179894d155aa17See the full diff
    • the items/pause_mora response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property items/pause_mora/consonant to the response with the 200 status

      response-optional-property-added

    • added the optional property items/pause_mora/consonant_length to the response with the 200 status

      response-optional-property-added

    • removed Mora from the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property items/pause_mora/pitch to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/text to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/vowel to the response with the 200 status

      response-required-property-added

    • added the required property items/pause_mora/vowel_length to the response with the 200 status

      response-required-property-added

  • eb97301b5bb315See the full diff
    • query request parameter core_version list-of-types was narrowed by removing types null

      request-parameter-list-of-types-narrowed

    • for the query request parameter core_version, the type/format was generalized from / to string/

      request-parameter-type-generalized

    • added Mora to the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-added

    • removed Mora subschema #2 from the items/pause_mora response property anyOf list for the response status 200

      response-property-any-of-removed

    • response property items/moras/items/consonant list-of-types was narrowed by removing types null from media type application/json of response 200

      response-property-list-of-types-narrowed

    • response property items/moras/items/consonant_length list-of-types was narrowed by removing types null from media type application/json of response 200

      response-property-list-of-types-narrowed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • response property items/moras/items/consonant list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property items/moras/items/consonant_length list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • query request parameter core_version list-of-types was widened by adding types null

      request-parameter-list-of-types-widened

    • for the query request parameter core_version, the type/format was generalized from string/ to /

      request-parameter-type-generalized

    • removed Mora from the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-removed

    • added Mora subschema #2 to the items/pause_mora response property anyOf list for the response status 200

      response-property-any-of-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 3b94f9a50fd215See the full diff
    • query request parameter core_version list-of-types was narrowed by removing types null

      request-parameter-list-of-types-narrowed

    • for the query request parameter core_version, the type/format was generalized from / to string/

      request-parameter-type-generalized

    • added Mora to the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-added

    • removed Mora subschema #2 from the items/pause_mora response property anyOf list for the response status 200

      response-property-any-of-removed

    • response property items/moras/items/consonant list-of-types was narrowed by removing types null from media type application/json of response 200

      response-property-list-of-types-narrowed

    • response property items/moras/items/consonant_length list-of-types was narrowed by removing types null from media type application/json of response 200

      response-property-list-of-types-narrowed

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • response property items/moras/items/consonant list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property items/moras/items/consonant_length list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • query request parameter core_version list-of-types was widened by adding types null

      request-parameter-list-of-types-widened

    • for the query request parameter core_version, the type/format was generalized from string/ to /

      request-parameter-type-generalized

    • removed Mora from the items/pause_mora response property allOf list for the response status 200

      response-property-all-of-removed

    • added Mora subschema #2 to the items/pause_mora response property anyOf list for the response status 200

      response-property-any-of-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog