PluginProbe
BeyondWords – AI audio for publishers / 4.2.4
BeyondWords – AI audio for publishers v4.2.4
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 4.7.0 All 43 releases
speechkit / src / Core / Settings / store / resolvers.js

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

31 lines 932 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 *getPlayerStyles( projectId ) {
10 if (! projectId) {
11 return [];
12 }
13 const path = `/beyondwords/v1/projects/${projectId}/player-styles`;
14 const playerStyles = yield actions.fetchFromAPI( path );
15 return actions.setPlayerStyles( playerStyles );
16 },
17 *getLanguages() {
18 const path = '/beyondwords/v1/languages';
19 // const languages = yield actions.fetchFromAPI( path, { filter: '1' } );
20 const languages = yield actions.fetchFromAPI( path );
21 return actions.setLanguages( languages );
22 },
23 *getVoices( languageId ) {
24 const path = `/beyondwords/v1/languages/${languageId}/voices`;
25 const voices = yield actions.fetchFromAPI( path );
26 return actions.setVoices( voices );
27 },
28 };
29
30 export default resolvers;
31