The teacher rings the bell to alert students before class.
Tips
usage
摇铃 functions as both a noun (the rattle/bell itself) and a verb-object (to ring a hand-shaken bell). For an infant toy specifically, the term 婴儿摇铃 is unambiguous on shopping sites.