From: will Date: Mon, 20 May 2024 20:58:46 +0000 (+0100) Subject: fixed espeak not whispering bug, added gitignore file X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=0f9370f59f3b06c49516ef073f3e6a11eac38f53;p=spaceweather fixed espeak not whispering bug, added gitignore file --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..41833bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/spaceweather.wav +/spaceweather.mp3 +/media/graph* +/audio/* +!/audio/start.wav +!/audio/end.wav diff --git a/config/last b/config/last index 53ef4a3..273bdc5 100755 --- a/config/last +++ b/config/last @@ -1,7 +1,7 @@ -Welcome to space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07 -In the last 24 hours Solar activity was at low levels. The largest flare of the period was aC4.1 at 18 to 1938 utc from Region 3685 . Slightgrowth was observed in the intermediate spots of Region 3685 and theleader spots of Region 3683 . New Region 3687 was numbered. Other activity included an approximate 60 degreefilament eruption centered near S40E15 that began after 18 to 2125 utc. Anassociated coronal mass ejection was observed off the S limb in SOHO to LASCO C2 imagery at 18 to 2257 utc. Modelling is in progress to determine if there is anEarth-directed component. Solar activity is expected to be low with a chance for M-class flares and a slight chance for an X-class flare on 19 to 21 may. -In the last 24 hours The greater than 10 mega electron volt proton flux was slightly elevated, but wellbelow S1 levels. The 2 mega electron volt electron flux was at normal tomoderate levels. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 19 to 21 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chanced for high levels, through 21 may. -In the last 24 hours Solar wind parameters were near nominal levels with solar wind speedranging from 358 to 449 kilometers per second. Total field ranged from 4 to 9 nano tesla while the Bzcomponent was between +2 to to 7 nano tesla. Phi angle was positive. By late on 19 May, the solar wind environment is expected to see theinfluences of the passing coronal mass ejection from 15 may. Additional enhancements arethen expected on 20 may from the coronal mass ejection that left the Sun on 17 may. coronal mass ejectioninfluences are expected to slowly diminish on 21 may. -In the last 24 hours The geomagnetic field was quiet to unsettled. Unsettled to active levels are expected late on 19 may due to potentialactivity from the 15 may coronal mass ejection. By 20 May, unsettled to active levels areexpected, with G1 storming likely, due to glancing coronal mass ejection effectsfrom the 17 may coronal mass ejection. Mid to late day on 21 May, active levels areexpected to decrease to mostly unsettled levels as coronal mass ejection effects graduallydiminish. -This has been space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07 +Welcome to space weather, issued by XMDV radio at Mon the 20 May 2024 at 12:30:08 +In the last 24 hours Solar activity reached moderate levels when Region 3685 produced an M1.9 to 1N at 19 to 1344 utc, an M2.5 to 1B at 19 to 1756 utc, and an M1.6 to 1 n at 19 to 2159 utc. Growth was observed in theintermediate spots of Region 3685 and the leader spots of Region 3683 . New Region 3687 was numbered. Modelling of a filament eruption coronal mass ejection mentioned in the 19 to 1230 utcdiscussion suggested passage well south of the ecliptic. Analysis andmodelling are underway for a halo coronal mass ejection first seen in C2 imagery at 20 to 0536 utc. This event is associated with a C6.7 flare at 20 to 0554 utcfrom AR 3683. Early estimated speeds indicate a possible arrival on 22May. Solar activity is likely to be moderate, with isolated M-class flares probable and a slight chance for an X-class flare on 20 to 22 may. +In the last 24 hours The 10 mega electron volt proton flux at geosynchronous orbit had returned tobackground levels. Electrons greater than 2 mega electron volt at geosynchronous orbitreached a peak level of 406 pfu. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 20 to 22 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chanced for high levels, through 21 may. +In the last 24 hours Solar wind speeds slowly decreased from ~400 to 350 kilometers per second. Total IMFreached 9 nano tesla at 19 to 1417 utc. The maximum southward component of Bzreached to 8 nano tesla at 19 to 1254Z and was mostly southward from around 19 to 00 utcto 19 to 19 utc. Phi was mostly positive. Solar wind enhancements are then expected on 20 may from the coronal mass ejection thatleft the Sunday on 17 may. coronal mass ejection influences are expected to slowly diminishon 21 may. Enhanced conditions are expected on 22 may due to thepossible arrival of a halo coronal mass ejection from 20 may. +In the last 24 hours The geomagnetic field has been at quiet to unsettled levels for the past 24 hours. On 20 May, unsettled to active levels are expected, with G1 storming likely with glancing coronal mass ejection effects from the 17 may coronal mass ejection. Mid tolate day on 21 May, active levels are expected to decrease to mostlyunsettled levels as coronal mass ejection effects gradually diminish. G1-G3 storm levels are possible on 22 may due to the possiblearrival of the 20 may halo coronal mass ejection. +This has been space weather, issued by XMDV radio at Mon the 20 May 2024 at 12:30:08 Space weather was created by William Greenwood with material from the N O double A \ No newline at end of file diff --git a/config/transcript.json b/config/transcript.json index d968e58..6a0ba67 100755 --- a/config/transcript.json +++ b/config/transcript.json @@ -5,6 +5,27 @@ "url":"https://services.swpc.noaa.gov/text/discussion.txt", "translations":[ [ + "Mon", + "Monday" + ],[ + "Tues", + "Tuesday" + ],[ + "Wed", + "Wednsday" + ],[ + "Thurs", + "Thursday" + ],[ + "Fri", + "Friday" + ],[ + "Sat", + "Saturday" + ],[ + "Sun", + "Sunday" + ],[ " NE ", " north east " ],[ diff --git a/media/graph.0.png b/media/graph.0.png deleted file mode 100644 index c6605d7..0000000 Binary files a/media/graph.0.png and /dev/null differ diff --git a/media/graph.1.png b/media/graph.1.png deleted file mode 100644 index b6bba44..0000000 Binary files a/media/graph.1.png and /dev/null differ diff --git a/media/graph.2.png b/media/graph.2.png deleted file mode 100644 index 0114530..0000000 Binary files a/media/graph.2.png and /dev/null differ diff --git a/media/graph.3.png b/media/graph.3.png deleted file mode 100644 index 2ccb62a..0000000 Binary files a/media/graph.3.png and /dev/null differ diff --git a/spaceweather.py b/spaceweather.py index 769dd98..ec5f1aa 100755 --- a/spaceweather.py +++ b/spaceweather.py @@ -134,7 +134,7 @@ def generate_speach(textlist): # run through the sections of the spaceweather report and generate as an audio file for i, text in enumerate(textlist[:-1]): # espeak call to generate the speach - os.system(f"espeak -v en-sc -s {random.randint(140,150)} -p 35 -g 1 -w audio/voice.{i}.wav '{text}'") + os.system(f"espeak -v en -s{random.randint(115,150)} -p15 -k20 -w audio/voice.{i}.wav '{text}'") # get the duration of the file t = get_duration(f"audio/voice.{i}.wav") @@ -142,7 +142,7 @@ def generate_speach(textlist): print(f"{i} -> generated par duration: {t}s") i = len(textlist)-1 - os.system(f"espeak -v en-sc+whisper -s 150 -p 35 -g 1 -w audio/voice.{i}.wav '{textlist[-1]}'") + os.system(f"espeak -v en+whisper -s100 -p15 -k20 -w audio/voice.{i}.wav '{textlist[-1]}'") # get the duration of the file t = get_duration(f"audio/voice.{i}.wav") diff --git a/spaceweather.wav b/spaceweather.wav deleted file mode 100644 index 931d9f5..0000000 Binary files a/spaceweather.wav and /dev/null differ diff --git a/transcript.html b/transcript.html index 99ade9c..4ced6f2 100644 --- a/transcript.html +++ b/transcript.html @@ -1 +1 @@ -

Welcome to space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07

In the last 24 hours Solar activity was at low levels. The largest flare of the period was aC4.1 at 18 to 1938 utc from Region 3685 . Slightgrowth was observed in the intermediate spots of Region 3685 and theleader spots of Region 3683 . New Region 3687 was numbered. Other activity included an approximate 60 degreefilament eruption centered near S40E15 that began after 18 to 2125 utc. Anassociated coronal mass ejection was observed off the S limb in SOHO to LASCO C2 imagery at 18 to 2257 utc. Modelling is in progress to determine if there is anEarth-directed component. Solar activity is expected to be low with a chance for M-class flares and a slight chance for an X-class flare on 19 to 21 may.

In the last 24 hours The greater than 10 mega electron volt proton flux was slightly elevated, but wellbelow S1 levels. The 2 mega electron volt electron flux was at normal tomoderate levels. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 19 to 21 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chanced for high levels, through 21 may.

In the last 24 hours Solar wind parameters were near nominal levels with solar wind speedranging from 358 to 449 kilometers per second. Total field ranged from 4 to 9 nano tesla while the Bzcomponent was between +2 to to 7 nano tesla. Phi angle was positive. By late on 19 May, the solar wind environment is expected to see theinfluences of the passing coronal mass ejection from 15 may. Additional enhancements arethen expected on 20 may from the coronal mass ejection that left the Sun on 17 may. coronal mass ejectioninfluences are expected to slowly diminish on 21 may.

In the last 24 hours The geomagnetic field was quiet to unsettled. Unsettled to active levels are expected late on 19 may due to potentialactivity from the 15 may coronal mass ejection. By 20 May, unsettled to active levels areexpected, with G1 storming likely, due to glancing coronal mass ejection effectsfrom the 17 may coronal mass ejection. Mid to late day on 21 May, active levels areexpected to decrease to mostly unsettled levels as coronal mass ejection effects graduallydiminish.

This has been space weather, issued by XMDV radio at Sun the 19 May 2024 at 12:30:07

Space weather was created by William Greenwood with material from the N O double A

\ No newline at end of file +

Welcome to space weather, issued by XMDV radio at Mon the 20 May 2024 at 12:30:08

In the last 24 hours Solar activity reached moderate levels when Region 3685 produced an M1.9 to 1N at 19 to 1344 utc, an M2.5 to 1B at 19 to 1756 utc, and an M1.6 to 1 n at 19 to 2159 utc. Growth was observed in theintermediate spots of Region 3685 and the leader spots of Region 3683 . New Region 3687 was numbered. Modelling of a filament eruption coronal mass ejection mentioned in the 19 to 1230 utcdiscussion suggested passage well south of the ecliptic. Analysis andmodelling are underway for a halo coronal mass ejection first seen in C2 imagery at 20 to 0536 utc. This event is associated with a C6.7 flare at 20 to 0554 utcfrom AR 3683. Early estimated speeds indicate a possible arrival on 22May. Solar activity is likely to be moderate, with isolated M-class flares probable and a slight chance for an X-class flare on 20 to 22 may.

In the last 24 hours The 10 mega electron volt proton flux at geosynchronous orbit had returned tobackground levels. Electrons greater than 2 mega electron volt at geosynchronous orbitreached a peak level of 406 pfu. There is a slight chance for the greater than 10 mega electron volt protons reaching S1 levels on 20 to 22 may due to the flare potential of Region 3685. The greater than 2 mega electron volt electron flux is expected to remain at normal tomoderate levels, with a chanced for high levels, through 21 may.

In the last 24 hours Solar wind speeds slowly decreased from ~400 to 350 kilometers per second. Total IMFreached 9 nano tesla at 19 to 1417 utc. The maximum southward component of Bzreached to 8 nano tesla at 19 to 1254Z and was mostly southward from around 19 to 00 utcto 19 to 19 utc. Phi was mostly positive. Solar wind enhancements are then expected on 20 may from the coronal mass ejection thatleft the Sunday on 17 may. coronal mass ejection influences are expected to slowly diminishon 21 may. Enhanced conditions are expected on 22 may due to thepossible arrival of a halo coronal mass ejection from 20 may.

In the last 24 hours The geomagnetic field has been at quiet to unsettled levels for the past 24 hours. On 20 May, unsettled to active levels are expected, with G1 storming likely with glancing coronal mass ejection effects from the 17 may coronal mass ejection. Mid tolate day on 21 May, active levels are expected to decrease to mostlyunsettled levels as coronal mass ejection effects gradually diminish. G1-G3 storm levels are possible on 22 may due to the possiblearrival of the 20 may halo coronal mass ejection.

This has been space weather, issued by XMDV radio at Mon the 20 May 2024 at 12:30:08

Space weather was created by William Greenwood with material from the N O double A

\ No newline at end of file