mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-29 19:54:34 +03:00
24 lines
7.1 KiB
JavaScript
24 lines
7.1 KiB
JavaScript
import moment from 'moment-timezone'
|
|
|
|
import utterance_samples from '../../core/data/en/answers.json'
|
|
|
|
jest.setTimeout(60000)
|
|
|
|
global.date = {
|
|
time_zone: moment.tz.guess()
|
|
}
|
|
|
|
global.audio = {
|
|
base_64_webm_blob:
|
|
'GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYECGFOAZwH/////////FUmpZpkq17GDD0JATYCGQ2hyb21lV0GGQ2hyb21lFlSua7+uvdeBAXPFhxeqQ5sU0HKDgQKGhkFfT1BVU2Oik09wdXNIZWFkAQEAAIC7AAAAAADhjbWERzuAAJ+BAWJkgRAfQ7Z1Af/////////ngQCj74EAAIB7gyAlBSG1BQoDMYUlMcRMiH8gSKwBXdVH7uHQpyRUX0rJvKkvKn6QTh+ZZwqKgeNB5lsetPgpSDd7jDHSWd74r4hFGVqIMupYLXUyE5IplOjir+AB7P0NO4kPLhNV2DDSTf3KkdwT/6qeA6PzgQA8gHuDJSctveqX7uiOs+2MT3O/K/KgE9B2xXzY17oxuZZ9sBjR7V2t1N3MMc+UT61JJcEcqCHmiYGWa36ll/5KRNPjTJDBdjx1iruxE235mA7GMRMtqmteYNzPmtzVDwLqxm3oslAog6eSvDk862huD6PngQB3gHuDIR4vXyjOUeY0XTYYCjWuyRUa9rYo70dvlgyjbJ3lwZA9op8syzeNbU2igLXygF3uMZHUo43eddZARa0hk+ZqIHApQkm9Lb5bnxf4CYKTfZ9pfaaHUavTSkOXrQX0N5lLl6PugQC0gHuDHSAnmyvEcQobFIDUv/9UWlUZDa9UC7++VqccfTFXJyfWuLAXRGv2GBORPLGJh9XnLsL6QQK9ScX83F9nW8GwiNZ9U7uLeQay04HjJNlcv8V1Rf5Ewqql3ZRBvmBtqnK2vLwRFBGVS2ej64EA8IB7gyQegQIPAEFlm90mmdOrRKbByeDhj7PZVVg19mmn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gls9K5oZOzJy70IYRl0NKNaoS/Ybr+71/yaAX0iB5giSAepYIKlF0F5M73X83iYuj4qmtwfz8GKbTItDKPpgQlhgHuDHiAeRNUKTQvMzqiq2yLMIKwRYPDdy8v/wIlTOJjvl7Ab3iwYNSD9dAkIVqcCsrp/uS+XSiNIVuvqxjW+N1pdgh/QS28kUIUjn8WyxfrQe8g3msiKelC5MKIaI5YKyuSjTHLyo+uBCZ2Ae4MgISHVH574wGmSXTqz+aErjjPXaungXi6Rp4AkGqkAodBtIfM1r6T4iDhN7XcuNR54pcBIRzCKUiKhs62lnzriqs8tAxcM+bbXxqHW1ummwaKLESyAh5mx4MyahFZZpBDUpr+nbqPlgQnZgHuDIx4iB5bbsA2bfmAI8Ahwn/hzwIHi8O+MNWWXoXPJPAPzkmthDyHVFvX+KBwqFuzZi3JsMxKdeycrAHpT0jRz6iyUfCF1r3UEBAJ2o0TamfQgQACYs4qhWhGCFFVzb9I='
|
|
}
|
|
|
|
global.enUtteranceSamples = utterance_samples
|
|
|
|
process.env.LEON_LANG = 'en-US'
|
|
process.env.LEON_HOST = 'http://localhost'
|
|
process.env.LEON_PORT = 1338
|
|
process.env.LEON_TIME_ZONE = global.date.time_zone
|
|
process.env.LEON_TTS = true.toString()
|
|
process.env.LEON_TTS_PROVIDER = 'flite'
|