PluginProbe
BeyondWords – AI audio for publishers / 4.0.3
BeyondWords – AI audio for publishers v4.0.3
7.2.0 7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 All 44 releases
speechkit / src / Core / Settings / store / resolvers.js

resolvers.js in BeyondWords – AI audio for publishers 4.0.3, at src/Core/Settings/store/resolvers.js

23 lines 677 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import actions from './actions';
2
3 const resolvers = {
4 *getSettings() {
5 const path = '/beyondwords/v1/settings';
6 const settings = yield actions.fetchFromAPI( path );
7 return actions.setSettings( settings );
8 },
9 *getLanguages() {
10 const path = '/beyondwords/v1/languages';
11 // const languages = yield actions.fetchFromAPI( path, { filter: '1' } );
12 const languages = yield actions.fetchFromAPI( path );
13 return actions.setLanguages( languages );
14 },
15 *getVoices( languageId ) {
16 const path = `/beyondwords/v1/languages/${languageId}/voices`;
17 const voices = yield actions.fetchFromAPI( path );
18 return actions.setVoices( voices );
19 },
20 };
21
22 export default resolvers;
23