Changeset 2520516
- Timestamp:
- 04/23/2021 04:34:31 PM (5 years ago)
- Location:
- amazon-polly/trunk
- Files:
-
- 4 edited
-
README.md (modified) (2 diffs)
-
README.txt (modified) (2 diffs)
-
admin/AmazonAI-Common.php (modified) (2 diffs)
-
amazonpolly.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
amazon-polly/trunk/README.md
r2520430 r2520516 8 8 | Requires PHP | 5.6 | 9 9 | Tested up to | 5.7.1 | 10 | Stable tag | 4.3. 0|10 | Stable tag | 4.3.1 | 11 11 | License | GPLv3 ONLY | 12 12 | License URI | https://www.gnu.org/licenses/gpl-3.0.html | … … 137 137 138 138 #### Changelog 139 140 = 4.3.1 = 141 142 - Force neural setting for Olivia/Kevin neural-only voices 139 143 140 144 = 4.3.0 = -
amazon-polly/trunk/README.txt
r2520430 r2520516 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.7.1 7 Stable tag: 4.3. 07 Stable tag: 4.3.1 8 8 License: GPLv3 ONLY 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 134 134 135 135 == Changelog == 136 137 = 4.3.1 = 138 139 * Force neural setting for Olivia/Kevin neural-only voices 136 140 137 141 = 4.3.0 = -
amazon-polly/trunk/admin/AmazonAI-Common.php
r2520430 r2520516 972 972 973 973 public function is_polly_neural_enabled() { 974 975 974 $option_value = get_option('amazon_polly_neural', ''); 976 if (empty($option_value) ) {975 if (empty($option_value) && !$this->is_neural_only_voice()) { 977 976 return ''; 978 977 } … … 1107 1106 return true; 1108 1107 } 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"); 1109 1125 return false; 1110 1126 } -
amazon-polly/trunk/amazonpolly.php
r2520430 r2520516 17 17 * Plugin URI: https://wordpress.org/plugins/amazon-polly/ 18 18 * 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. 019 * Version: 4.3.1 20 20 * Author: AWS Labs, WP Engine 21 21 * Author URI: https://aws.amazon.com/
Note: See TracChangeset
for help on using the changeset viewer.