Installing and Configuring the Plugin - Amazon Polly
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

如果我们为英文版本指南提供翻译,那么如果存在任何冲突,将以英文版本指南为准。在提供翻译时使用机器翻译。

Installing and Configuring the Plugin

在安装该插件之前,请确保完成先决条件

安装该插件

  1. 登录Wordpress网站的管理仪表板,也称为 WP Admin.

  2. 选择 Plugins (插件)

  3. 选择 Add New (新增)

  4. 在搜索框中,输入 AWS for WordPress

  5. 找到适用于 WordPress 的 AWS 插件。选择 Install Now (立即安装),然后选择 Activate (激活)

Configuring the Plugin

安装适用于 WordPress 的 AWS 插件后,配置该插件以启用播客、替代存储位置和其他选项。

注意

在以下过程中,命令和字段名称可能与 WordPress 中使用的名称略有不同。

配置插件

  1. WordPress Admin (WordPress 管理) 页面上选择 Settings (设置)

  2. 使用以下选项配置该插件:

    • AWS access key and AWS secret key—These AWS credentials allow the plugin to use Amazon Polly and Amazon Simple Storage Service (Amazon S3). Type the AWS access and secret keys that you created earlier. If you are hosting your WordPress site on Amazon EC2, you can use an IAM role instead of credentials. In that case, leave these two fields blank.

    • Sample rate—The sample rate for the audio files that will be generated, in Hz. Higher sampling rates produce higher-quality audio.

    • Voice name—The Amazon Polly voice to use in the audio file.

      注意

      Remember that the choice of voice is determined by the language you're using. For a complete set of available voices, see Available Voices

    • Player position—Where to position the audio player on the website. You can put it before or after the post, or not use it at all. If you want to make your files available as podcasts by using Amazon Pollycast, don't display the audio player.

    • New post default—Specifies whether Amazon Polly should automatically create an audio file for all new posts. Choose this option if you want Amazon Polly to create an audio file for each new post.

    • Autoplay—Specifies whether the audio player automatically starts playing the audio for a post when a visitor visits it.

    • Store audio in Amazon S3—If you want to store audio files in an S3 bucket instead of on your web server, choose this option. Amazon Polly creates the bucket for you. For more information and pricing, see Amazon S3.

    • Amazon CloudFront (CDN) domain name—If you want to broadcast your audio files with Amazon CloudFront, provide the name of your CloudFront domain. The plugin uses the domain to stream audio. If you don't already have a domain, create one in Amazon CloudFront.

    • ITunes category—The category for your podcast. Choosing a category makes it easier for podcast users to find your podcast in the podcast catalog.

    • ITunes explicit—Specifies whether to enable Amazon Pollycast podcasting with the ITunes explicit setting..

    • Bulk update all posts—If you want to convert all your previous WordPress posts to use the AWS for WordPress plugin, choose this option.

  3. 选择 Save Changes (保存更改)