Plugin Directory

Changeset 2520516


Ignore:
Timestamp:
04/23/2021 04:34:31 PM (5 years ago)
Author:
troylar
Message:

trunk 4.3.1

Location:
amazon-polly/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • amazon-polly/trunk/README.md

    r2520430 r2520516  
    88| Requires PHP      | 5.6                                                                                                                                                |
    99| Tested up to      | 5.7.1                                                                                                                                              |
    10 | Stable tag        | 4.3.0                                                                                                                                              |
     10| Stable tag        | 4.3.1                                                                                                                                              |
    1111| License           | GPLv3 ONLY                                                                                                                                         |
    1212| License URI       | https://www.gnu.org/licenses/gpl-3.0.html                                                                                                          |
     
    137137
    138138#### Changelog
     139
     140= 4.3.1 =
     141
     142- Force neural setting for Olivia/Kevin neural-only voices
    139143
    140144= 4.3.0 =
  • amazon-polly/trunk/README.txt

    r2520430 r2520516  
    55Requires PHP: 5.6
    66Tested up to: 5.7.1
    7 Stable tag: 4.3.0
     7Stable tag: 4.3.1
    88License: GPLv3 ONLY
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    134134
    135135== Changelog ==
     136
     137= 4.3.1 =
     138
     139* Force neural setting for Olivia/Kevin neural-only voices
    136140
    137141= 4.3.0 =
  • amazon-polly/trunk/admin/AmazonAI-Common.php

    r2520430 r2520516  
    972972
    973973    public function is_polly_neural_enabled() {
    974 
    975974        $option_value = get_option('amazon_polly_neural', '');
    976         if (empty($option_value)) {
     975        if (empty($option_value) && !$this->is_neural_only_voice()) {
    977976            return '';
    978977        }
     
    11071106            return true;
    11081107        } else {
     1108            return false;
     1109        }
     1110
     1111    }
     1112
     1113    public function is_neural_only_voice() {
     1114        $voice = $this->get_voice_id();
     1115        $neural_only_voices = array("Olivia","Kevin");
     1116        $logger = new AmazonAI_Logger();
     1117
     1118        $logger->log("Checking for neural: ".$voice);
     1119
     1120        if (in_array($voice, $neural_only_voices)) {
     1121            $logger->log("Neural only: TRUE");
     1122            return true;
     1123        } else {
     1124            $logger->log("Neural only: FALSE");
    11091125            return false;
    11101126        }
  • amazon-polly/trunk/amazonpolly.php

    r2520430 r2520516  
    1717 * Plugin URI:        https://wordpress.org/plugins/amazon-polly/
    1818 * Description:       Create audio versions of your posts, translate them into other languages, and create podcasts. Integrate with Amazon Alexa to listen to your posts on Alexa-enabled devices. Use Amazon CloudFront to accelerate your website and provide a faster, more reliable viewing experience.
    19  * Version:           4.3.0
     19 * Version:           4.3.1
    2020 * Author:            AWS Labs, WP Engine
    2121 * Author URI:        https://aws.amazon.com/
Note: See TracChangeset for help on using the changeset viewer.