Repository navigation
Releases
RAI Ora Esatta - Clock of the 70s
RAI Clock Ora Esatta (OBS Studio Lua Script)
An OBS Studio Lua script that adds a custom video source rendering the iconic late-1970s RAI analog clock ("Ora Esatta"), with an optional spoken time announcement.
Uno script Lua per OBS Studio che aggiunge una sorgente video personalizzata, la quale riproduce l'iconico orologio analogico della RAI di fine anni '70 ("Ora Esatta"), con l'opzione di un annuncio vocale dell'ora.
Features
- Custom OBS video source: composites four PNG layers (dial, hour hand, minute hand, second hand) on a native
1920x1440(4:3) canvas. - Real-time synchronization: reads your local system clock and rotates the hands around the center pivot.
- Continuous seconds hand: the second hand sweeps smoothly instead of ticking once per second; the minute and hour hands move smoothly too.
- Vocal announcement (optional): at a time you choose, a countdown beep plays, followed by the spoken hour and minutes (for example "13" then "12" for 13:12).
- Simple setup: choose the announcement hour and minute from drop-down menus in the source's properties, and try it immediately with a Test now button.
- Self-contained: uses OBS Studio's built-in LuaJIT engine (
obslua), with no external dependencies.
Folder Structure
The script lives inside the RAI-Clock-Ora-Esatta/ package folder, next to a second RAI-Clock-Ora-Esatta/ folder that holds the assets. Keep this layout exactly:
your-obs-scripts-folder/
└── RAI-Clock-Ora-Esatta/ <- assets folder
├── RAI-Clock-Ora-Esatta.lua
├── LICENSE.txt
├── README.md
├── Audio/
│ ├── Beep.wav
│ ├── h00.wav ... h23.wav
│ └── m01.wav ... m59.wav
└── Images/
├── RAI-Clock-Dial.png
├── RAI-Clock-Hours.png
├── RAI-Clock-Minutes.png
└── RAI-Clock-Seconds.png
Installation & Setup
- Copy the whole
RAI-Clock-Ora-Esatta/package folder into your preferred OBS scripts folder. - Open OBS Studio and go to Tools > Scripts.
- Click the
+button at the bottom left, selectRAI-Clock-Ora-Esatta.luafrom inside the package folder, and click Open. - Close the Scripts window.
- In your Sources dock, click
+and select RAI Clock Ora Esatta with Audio Announcement. - Resize or position the
1920x1440clock source in your scene as needed.
Vocal Announcement
Double-click the clock source in your scene to open its properties:
| Setting | Description |
|---|---|
| Enable vocal announcement | Turns the announcement on or off. |
| Announcement hour | Hour of the announcement, 00–23. |
| Announcement minute | Minute of the announcement, 00–59. |
| Test now | Runs a full announcement starting in 8 seconds, so you can check levels and timing without waiting. |
How it plays
- 6 seconds before the chosen time,
Beep.wavis played once. It is a single pre-mixed 7-second file that already contains the whole beep pattern and ends exactly at the announcement time. - At the chosen time,
hXX.wavis played, whereXXis the hour in 24-hour format (13:00 playsh13.wav). - If the minute is not
00,mXX.wavfollows immediately (13:12 playsh13.wav, thenm12.wav). - The announcement repeats every day at the same time.
Audio files
Beep.wav: exactly 6 seconds long, with the beep pattern prepared in your audio editor (for example, beeps at 0, 1, 2, 3, 4 and 6 seconds and silence at 5 seconds, so the last beep lands one second before the announcement).h00.wav…h23.wav: the spoken hours.m01.wav…m59.wav: the spoken minutes.
A missing file is skipped and reported in the script log (Tools > Scripts > Script Log).
Audio routing
The announcement is sent to audio tracks 1–6, so it is heard on your stream and in your recordings. It is not played on your local monitoring device by default. To hear it locally as well, open the .lua file and set MONITOR_LOCALLY = true.
Note: if you add several clock sources, the one whose properties you changed last decides the announcement time.
Troubleshooting
- Clock is blank: check that the four PNG files are in
RAI-Clock-Ora-Esatta/Images/and read the Script Log for "failed to load texture" messages. - No sound: check that the files are in
RAI-Clock-Ora-Esatta/Audio/, that Enable vocal announcement is ticked, and use Test now to confirm. Then check the Script Log for "missing audio file" messages. - Announcement is not heard on stream: make sure your stream or recording uses one of audio tracks 1–6.
Requirements
- OBS Studio with Lua scripting support enabled
- The
.luascript, plus all PNG and WAV files inside the innerRAI-Clock-Ora-Esatta/assets folder (Images/andAudio/)
How It Was Made
The beep
Made in Reaper: a tone generator set to 1 kHz, with volume automation to create the beeps, then exported as a .wav file.
The voice
The hour and minute announcements are not the original announcer's voice. I chose not to use AI to clone a voice: the original announcer is probably no longer with us, and cloning it would not feel morally right to me. There could also be legal issues I prefer to avoid. I used a free text-to-speech (TTS) service instead, although I couldn't find a voice similar to the original.
The graphics
All the graphics, the dial and the hands, were redrawn in Affinity in Vector mode, the same way I made them for my reconstruction videos on my second channel, @RicordiDellaRAI.
The help of AI: where it came into the game
AI was used to help me to quickly solve some issue with the audio-announcment that wasn't starting at the moment I wanted, and to make the seconds-hand movement to be smoother.
Author & License
- Author: Tormy Van Cool
- License: Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
You are free to use and share this script and its artwork for any purpose with proper credit to Tormy Van Cool, provided you do not distribute modified versions. See LICENSE.txt for full details.

